C# 클래스 LSharp.ClrGlue

Utilities for interoperating with the Common Language Runtime
파일 보기 프로젝트 열기: RobBlackwell/LSharp 1 사용 예제들

공개 메소드들

메소드 설명
CallMethod ( string method, object o ) : object

Calls the given method on the given object with given arguments

CallStaticMethod ( string methodName, Type type ) : object
EnvironmentVersion ( ) : string
Fields ( Object o ) : string

Reflects over all the fields of an object

FindType ( string typeName ) : Type

Searches the currently loaded assemblies for a type with the given name

FindType ( string typeName, List namespaces ) : Type

Searches the list of namespaces for the specified type

FindUnambiguousMember ( string methodName, Type type, int argN ) : MemberInfo

Looks for a given member on a type. If it can be identified unambiguously return it, otherwise return null. N.B. LSharp is a dynamic language, so we don know the types of the arguments at rntime - just how many there are.

LSharpVersion ( ) : string
LoadAssembly ( string name ) : Assembly

Loads the assembly with the given name

MakeInstance ( Type type, object arguments ) : object
TypeInfo ( Type type ) : string

Reflects over a type object to create a textual description of its declaration

비공개 메소드들

메소드 설명
GetConstructor ( Type type, Type types, object values ) : ConstructorInfo

메소드 상세

CallMethod() 공개 정적인 메소드

Calls the given method on the given object with given arguments
public static CallMethod ( string method, object o ) : object
method string
o object
리턴 object

CallStaticMethod() 공개 정적인 메소드

public static CallStaticMethod ( string methodName, Type type ) : object
methodName string
type System.Type
리턴 object

EnvironmentVersion() 공개 정적인 메소드

public static EnvironmentVersion ( ) : string
리턴 string

Fields() 공개 정적인 메소드

Reflects over all the fields of an object
public static Fields ( Object o ) : string
o Object
리턴 string

FindType() 공개 정적인 메소드

Searches the currently loaded assemblies for a type with the given name
public static FindType ( string typeName ) : Type
typeName string
리턴 System.Type

FindType() 공개 정적인 메소드

Searches the list of namespaces for the specified type
public static FindType ( string typeName, List namespaces ) : Type
typeName string
namespaces List
리턴 System.Type

FindUnambiguousMember() 공개 정적인 메소드

Looks for a given member on a type. If it can be identified unambiguously return it, otherwise return null. N.B. LSharp is a dynamic language, so we don know the types of the arguments at rntime - just how many there are.
public static FindUnambiguousMember ( string methodName, Type type, int argN ) : MemberInfo
methodName string
type System.Type
argN int
리턴 System.Reflection.MemberInfo

LSharpVersion() 공개 정적인 메소드

public static LSharpVersion ( ) : string
리턴 string

LoadAssembly() 공개 정적인 메소드

Loads the assembly with the given name
public static LoadAssembly ( string name ) : Assembly
name string
리턴 System.Reflection.Assembly

MakeInstance() 공개 정적인 메소드

public static MakeInstance ( Type type, object arguments ) : object
type System.Type
arguments object
리턴 object

TypeInfo() 공개 정적인 메소드

Reflects over a type object to create a textual description of its declaration
public static TypeInfo ( Type type ) : string
type System.Type
리턴 string