C# 클래스 Prolog.TypeUtils

파일 보기 프로젝트 열기: ianhorswill/UnityProlog

공개 메소드들

메소드 설명
AddTypeSearchPath ( string namespacePrefix, string assembly ) : bool

Add a default namespace and assembly to search when looking for types

CreateGenericInstance ( this genericType, Type genericTypeParameters ) : object

Creates an instance of a generic type given its definition, type parameters, and constructor args.

FindType ( string name ) : Type

Makes a best effort to find the type object corresponding to the type with specified name.

GetPropertyOrField ( this value, string memberName ) : object

Returns the value of the object's specified field or property.

비공개 메소드들

메소드 설명
CreateGenericInstance ( this genericType, Type genericTypeParameters, List constructorArguments ) : object
CreateInstance ( this type ) : object
CreateInstance ( this type, List constructorArguments ) : object
CreateInstanceWithInitializerKeywords ( this type, List constructorArguments ) : object
GenericTypeInstanceOf ( this t, Type genericTypeDefinition ) : Type
InvokeMethod ( this value, string methodName ) : object
SetPropertyOrField ( this obj, string mname, object value ) : void
TrySetPropertyOrField ( this objectToModify, string memberName, object value, bool errorOnMissing ) : bool

메소드 상세

AddTypeSearchPath() 공개 정적인 메소드

Add a default namespace and assembly to search when looking for types
public static AddTypeSearchPath ( string namespacePrefix, string assembly ) : bool
namespacePrefix string Namespace to search
assembly string Assembly to search
리턴 bool

CreateGenericInstance() 공개 정적인 메소드

Creates an instance of a generic type given its definition, type parameters, and constructor args.
public static CreateGenericInstance ( this genericType, Type genericTypeParameters ) : object
genericType this
genericTypeParameters System.Type
리턴 object

FindType() 공개 정적인 메소드

Makes a best effort to find the type object corresponding to the type with specified name.
public static FindType ( string name ) : Type
name string Name of the type
리턴 System.Type

GetPropertyOrField() 공개 정적인 메소드

Returns the value of the object's specified field or property.
public static GetPropertyOrField ( this value, string memberName ) : object
value this
memberName string
리턴 object