The Members
property of the TypeDescription
class provides access to all members (methods, properties, etc.) of the described type. This includes both declared and inherited members, offering a comprehensive view of the type's capabilities.
The Members
property of the TypeDescription
class provides access to all members (methods, properties, etc.) of the described type. This includes both declared and inherited members, offering a comprehensive view of the type's capabilities.
Use the Members
property to retrieve an array of MemberDescription
objects, each representing a member of the type. This can be useful for reflection-like operations where you need to inspect the available members of a type.
// Example of accessing the Members property TypeDescription typeDescription = TypeLibrary.GetTypeDescription(typeof(MyClass)); MemberDescription[] members = typeDescription.Members; foreach (var member in members) { Console.WriteLine($"Member Name: {member.Name}, Member Type: {member.MemberType}"); }