System::Reflection::MemberInfo class

MemberInfo class

Provides reflection information on members. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class MemberInfo : public System::Object

Nested classes

Methods

MethodDescription
AddAttribute(const ObjectPtr&)Adds attribute to collection.
get_DeclaringType() constGets declaring type.
get_FullName() constGets member full name. Can be different in manually implemented parts.
virtual get_MemberType() constGets a System::Reflection::MemberTypes value indicating the type of the member - method, constructor, event, and so on.
get_Name() constGets member name.
get_ReflectedType() constGets reflected type type.
GetCustomAttributes(const TypeInfo&, bool) constReturns an array containing objects that represent all custom attributes applied to the type represented by the current object.
GetCustomAttributes(bool) constReturns an array containing objects that represent all custom attributes applied to the type represented by the current object.

Typedefs

TypedefDescription
ObjectPtrAlias for a shared pointer to Object.

See Also