xtd 0.2.0
Loading...
Searching...
No Matches
assembly_description_attribute.h
Go to the documentation of this file.
1
3#pragma once
4#include "../core_export.h"
5#include "../attribute.h"
6
8namespace xtd {
10 namespace reflection {
28 public:
30
34 explicit assembly_description_attribute(const string& description);
36
39 assembly_description_attribute(const string& description, const object& executing_assembly);
41
43
47 const string& description() const noexcept;
49
50 protected:
51 xtd::sptr<object> get_type_id() const noexcept override;
52
53 private:
54 string description_;
55 };
56 }
57}
58
60xtd::sptr<xtd::reflection::assembly_description_attribute>& __assembly_description_attribute__();
62
78#define assembly_description_(description) \
79 xtd::reflection::assembly_description_attribute __assembly_description_attribute {description, xtd::object()}
Represents the base class for custom attributes.
Definition attribute.h:25
Provides a text description for an assembly.
Definition assembly_description_attribute.h:27
assembly_description_attribute(const string &description)
Initializes a new instance of the xtd::reflection::assembly_description_attribute class.
const string & description() const noexcept
Gets decription information.
#define core_export_
Define shared library export.
Definition core_export.h:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10