C# 클래스 Encog.Util.ReflectionUtil

A set of C# reflection utilities.
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
FindField ( Type c, String name ) : FieldInfo

Find the specified field, look also in superclasses.

GetAllFields ( Type c ) : IList

Get all of the fields from the specified class as a collection.

GetAllFields ( Type c, IList result ) : void

Get all of the fields for the specified class and recurse to check the base class.

HasAttribute ( FieldInfo field, Type t ) : bool

Determine if the specified field has the specified attribute.

HasAttribute ( Type t, Type attribute ) : bool

Determine if the specified type contains the specified attribute.

LoadClassmap ( ) : void

Load the classmap file. This allows classes to be resolved using just the simple name.

LoadObject ( String name ) : Object

Loop over all loaded assembles and try to create the class.

ResolveEncogClass ( String name ) : String

Resolve an encog class using its simple name.

ResolveEnum ( FieldInfo field, FieldInfo v ) : Object

Resolve an enumeration.

비공개 메소드들

메소드 설명
ReflectionUtil ( ) : System

Private constructor.

메소드 상세

FindField() 공개 정적인 메소드

Find the specified field, look also in superclasses.
public static FindField ( Type c, String name ) : FieldInfo
c System.Type The class to search.
name String The name of the field we are looking for.
리턴 System.Reflection.FieldInfo

GetAllFields() 공개 정적인 메소드

Get all of the fields from the specified class as a collection.
public static GetAllFields ( Type c ) : IList
c System.Type The class to access.
리턴 IList

GetAllFields() 공개 정적인 메소드

Get all of the fields for the specified class and recurse to check the base class.
public static GetAllFields ( Type c, IList result ) : void
c System.Type The class to scan.
result IList A list of fields.
리턴 void

HasAttribute() 공개 정적인 메소드

Determine if the specified field has the specified attribute.
public static HasAttribute ( FieldInfo field, Type t ) : bool
field System.Reflection.FieldInfo The field to check.
t System.Type See if the field has this attribute.
리턴 bool

HasAttribute() 공개 정적인 메소드

Determine if the specified type contains the specified attribute.
public static HasAttribute ( Type t, Type attribute ) : bool
t System.Type The type.
attribute System.Type The attribute.
리턴 bool

LoadClassmap() 공개 정적인 메소드

Load the classmap file. This allows classes to be resolved using just the simple name.
public static LoadClassmap ( ) : void
리턴 void

LoadObject() 공개 정적인 메소드

Loop over all loaded assembles and try to create the class.
public static LoadObject ( String name ) : Object
name String The class to create.
리턴 Object

ResolveEncogClass() 공개 정적인 메소드

Resolve an encog class using its simple name.
public static ResolveEncogClass ( String name ) : String
name String The simple name of the class.
리턴 String

ResolveEnum() 공개 정적인 메소드

Resolve an enumeration.
public static ResolveEnum ( FieldInfo field, FieldInfo v ) : Object
field System.Reflection.FieldInfo The field to resolve.
v System.Reflection.FieldInfo The value to get the enum for.
리턴 Object