class TypeLibrary

robot_2Generated
code_blocksInput

Description

The TypeLibrary class in the Sandbox.Internal namespace provides a comprehensive set of methods for handling types, attributes, and serialization within the s&box environment. It is designed to facilitate dynamic type operations, including creation, attribute retrieval, and serialization.

Members

Instance Methods

Member NameSummary
GetAttributesRetrieves all attributes of a specified type.
GetTypesWithAttributeFinds types that have a specific attribute.
GetAttributeGets a single attribute of a specified type.
CreateCreates an instance of a type using its name or type and optional arguments.
GetMethodsWithAttributeRetrieves methods that have a specific attribute.
FindStaticMethodsFinds static methods by name.
GetMemberAttributesGets attributes of members, optionally filtering by static members.
GetPropertyDescriptionsRetrieves property descriptions for an object.
SetPropertySets a property value on a target object.
GetPropertyValueGets a property value from a target object.
ToBytesSerializes an object to a byte array.
FromBytesDeserializes an object from a byte array.
GetTypeIdentGets the identifier for a type.
GetTypeRetrieves a type description by type or name.
GetGenericTypesGets generic types based on a specified type.
GetTypesGets all types.
TryGetTypeAttempts to get a type description, returning a boolean indicating success.
GetTypeByIdentGets a type description by its identifier.
GetMemberByIdentGets a member description by its identifier.
GetGenericArgumentsRetrieves generic arguments for a specified generic type.
HasAttributeChecks if a type has a specific attribute.
CheckValidationAttributesChecks validation attributes on an object.
GetSerializedObjectGets a serialized object representation.
GetEnumDescriptionGets a description of an enum type.
CreatePropertyCreates a serialized property with specified attributes.