CheckValidationAttributes |
Check if all properties of this class instance pass their System.ComponentModel.DataAnnotations.ValidationAttribute. |
Create |
Create a type instance by name and is assignable to given type, with optional arguments for its constructor. |
CreateProperty |
|
FindStaticMethods |
Find all static methods with given name. |
FromBytes |
Deserialize this from bytes.
If the type is unknown, T can be an object. |
GetAttribute |
Get single attribute of type, from type |
GetAttributes |
Get all attributes of this type |
GetEnumDescription |
Get a class describing the values of an enum |
GetGenericArguments |
Performs System.Type.GetGenericArguments with access control checks.
Will throw if any arguments aren't in the whitelist. |
GetGenericTypes |
Get a list of types that implement this generic type |
GetMemberAttributes |
Find all member attributes (instances) with given attribute type. |
GetMemberByIdent |
Find a Sandbox.MemberDescription by its Sandbox.MemberDescription.Identity |
GetMethodsWithAttribute |
Find all static methods with given attribute. |
GetPropertyDescriptions |
Get a list of properties on the target object. To do this we'll just call GetDescription( obj.GetType() ) and return .Properties.
Will return an empty array if we can't access these properties. |
GetPropertyValue |
Try to get a value from a property on an object |
GetSerializedObject |
Get a SerializedObject version of this object |
GetType |
Get the description for a specific type. This will return null if you don't have whitelist access to the type.
For constructed generic types, this will give you the description of the generic type definition. |
GetTypeByIdent |
Find a TypeDescription by name |
GetTypeIdent |
Get hash of a type. |
GetTypes |
Get descriptions for all types that derive from T |
GetTypesWithAttribute |
Get all attributes of this type. Returns the type description along with the attribute. This will
also return types that inherit the attribute from base classes too. |
HasAttribute |
Return true if this type contains this attribute |
SetProperty |
Set a named property on given object.
Will perform extra magic for string inputs and try to convert to target property type. |
ToBytes |
Serialize this value to bytes, where possible |
TryGetType |
Find the description type |