The Fields
property of the TypeDescription
class provides access to all the fields defined on a specific type. It returns an array of FieldDescription
objects, each representing a field within the type.
The Fields
property of the TypeDescription
class provides access to all the fields defined on a specific type. It returns an array of FieldDescription
objects, each representing a field within the type.
Use the Fields
property to retrieve detailed information about each field in a type, such as its name, type, and attributes. This can be particularly useful for reflection or when dynamically interacting with types in the Sandbox environment.
// Example of accessing the Fields property TypeDescription typeDescription = TypeLibrary.GetType("YourTypeName"); FieldDescription[] fields = typeDescription.Fields; foreach (var field in fields) { Console.WriteLine($"Field Name: {field.Name}, Field Type: {field.FieldType}"); }