xtd 0.2.0
Loading...
Searching...
No Matches
assembly_version_attribute.hpp
Go to the documentation of this file.
1
3#pragma once
4#include "../attribute.hpp"
5
8#if !defined(__XTD_ASSEMBLY_VERSION__)
9# define __XTD_ASSEMBLY_VERSION__ "1.0.0"
10#endif
12
14namespace xtd {
16 namespace reflection {
33 public:
37 explicit assembly_version_attribute(const string& version);
39
42 assembly_version_attribute(const string& version, const object& executing_assembly);
44
48 const string& version() const noexcept;
50
51 protected:
52 xtd::sptr<object> get_type_id() const noexcept override;
53
54 private:
55 string version_;
56 };
57 }
58}
59
61xtd::sptr<xtd::reflection::assembly_version_attribute>& __assembly_version_attribute__();
63
79#define assembly_version_(version) \
80 xtd::reflection::assembly_version_attribute __assembly_version_attribute {xtd::string(version) == "" || xtd::string(version) == "*" ? __XTD_ASSEMBLY_VERSION__ : version, xtd::object()}
Represents the base class for custom attributes.
Definition attribute.hpp:25
Specifies the version of the assembly being attributed.
Definition assembly_version_attribute.hpp:32
assembly_version_attribute(const string &version)
Initializes a new instance of the xtd::reflection::assembly_version_attribute class.
const string & version() const noexcept
Gets version information.
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:114
#define core_export_
Define shared library export.
Definition core_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10