Represents all the fields defined in the type described by the TypeDescription
class. This property provides an array of FieldDescription
objects, each representing a field in the type.
Represents all the fields defined in the type described by the TypeDescription
class. This property provides an array of FieldDescription
objects, each representing a field in the type.
Use the Fields
property to access detailed information about each field in a type. This can be useful for reflection purposes, such as dynamically inspecting or manipulating fields of a type at runtime.
// Example of accessing fields of a type using TypeDescription TypeDescription typeDescription = TypeLibrary.GetTypeDescription(typeof(MyClass)); FieldDescription[] fields = typeDescription.Fields; foreach (var field in fields) { Console.WriteLine($"Field Name: {field.Name}, Field Type: {field.FieldType}"); }