public abstract interface Facepunch.ActionGraphs.ITypeLoader
An implementation of this interface will wrap reflection calls, allowing custom access control. See `Facepunch.ActionGraphs.DefaultTypeLoader` for a default implementation with no access control.
Methods
Showing 13 methods
public virtual System.Collections.Generic.IReadOnlyList`1<System.Reflection.ConstructorInfo> GetConstructors(System.Type declaringType)
Gets all constructors declared on the given type.
Parameters
declaringType: Declaring type that contains the constructors.
public virtual System.Reflection.FieldInfo GetField(System.Type declaringType, string name)
Gets a named field declared on the given type. Should return null if the field isn't found, or if it isn't allowed to be accessed.
Parameters
declaringType: Declaring type that contains the field.name: Field name.
public virtual System.Collections.Generic.IReadOnlyList`1<System.Reflection.MethodInfo> GetMethods(System.Type declaringType, string name)
Gets all methods with the given name declared on the given type.
Parameters
declaringType: Declaring type that contains the methods.name: Method name.
public virtual System.Type GetNestedType(System.Type declaringType, string name)
Gets a nested type from its name and the containing type. Should return null if the type isn't found, or if it isn't allowed to be accessed.
Parameters
declaringType: Declaring type that contains the nested type.name: Short name of the nested type, not the fully qualified name.
public virtual System.Reflection.PropertyInfo GetProperty(System.Type declaringType, string name)
Gets a named property declared on the given type. Should return null if the property isn't found, or if it isn't allowed to be accessed.
Parameters
declaringType: Declaring type that contains the property.name: Property name.
public virtual System.Type MakeGenericType(System.Type genericTypeDefinition, System.Type[] genericArguments)
Makes a generic instance type from the given generic type definition and type arguments. Should throw an exception if the arguments aren't valid for the generic type definition, or if creating such a type is forbidden.
Parameters
genericTypeDefinition: Generic type definition with one or more open type parameters.genericArguments: Type arguments to use when creating the generic instance type.
public virtual System.Type TypeFromIdentifier(string value)
Load a type from an identifier, as produced by `Facepunch.ActionGraphs.ITypeLoader.TypeToIdentifier(System.Type)`.
public virtual string TypeToIdentifier(System.Type type)
Gets an identifier string that can later be used by `Facepunch.ActionGraphs.ITypeLoader.TypeFromIdentifier(System.String)` to deserialize a type instance.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Facepunch.ActionGraphs |
| Type | class |
| Assembly | Facepunch.ActionGraphs |
| Doc ID | T:Facepunch.ActionGraphs.ITypeLoader |