C# 클래스 VizInt.TypeUtils

파일 보기 프로젝트 열기: BlueMountainCapital/VizInt

공개 메소드들

메소드 설명
FindType ( string typeName ) : Type

Similar to Type.GetType() but also searchs the current AppDomain.

GetTypeName ( Type t ) : string

Given a CLR Type, returns a C#-like type name, without namespaces, converting generic types and system types appropriately. Useful for debugging and logging purposes.

IsNumeric ( object o ) : bool
ToString ( object obj ) : string

Like object.ToString() but for collections it returns the length of the collection, and for Types, returns the C# type name.

비공개 메소드들

메소드 설명
AppendGenericName ( Type t, StringBuilder sb ) : void
AppendTypeString ( Type t, StringBuilder sb ) : void
TypeUtils ( ) : System

메소드 상세

FindType() 공개 정적인 메소드

Similar to Type.GetType() but also searchs the current AppDomain.
public static FindType ( string typeName ) : Type
typeName string
리턴 System.Type

GetTypeName() 공개 정적인 메소드

Given a CLR Type, returns a C#-like type name, without namespaces, converting generic types and system types appropriately. Useful for debugging and logging purposes.
public static GetTypeName ( Type t ) : string
t System.Type Type to obtain string on
리턴 string

IsNumeric() 공개 정적인 메소드

public static IsNumeric ( object o ) : bool
o object
리턴 bool

ToString() 공개 정적인 메소드

Like object.ToString() but for collections it returns the length of the collection, and for Types, returns the C# type name.
public static ToString ( object obj ) : string
obj object
리턴 string