Свойство | Тип | Описание | |
---|---|---|---|
NumericTypes | HashSet |
Метод | Описание | |
---|---|---|
CanAssign ( object target, |
지정된 오브젝트 객체를 원하는 타입으로 형변환이 가능한지 알아본다.
|
|
CreateGeneric ( |
개방된 Generic 수형을 innerType의 Closed Generic 수형으로 만들고, 인스턴스를 생성해서 반환합니다.
|
|
GetFields ( object obj ) : string |
해당 객체의 Field 정보를 string으로 반환한다.
|
|
GetFields ( object obj, IDictionary infos ) : void |
해당 객체의 Field 정보를 지정된 Hashtable에 채운다.
|
|
GetFields ( object obj, StringBuilder result ) : void |
해당 객체의 Field 정보를 지정된 StringBuilder에 채운다.
|
|
GetObjectType ( this obj ) : |
지정된 객체의 수형을 반환한다. 객체가 null이면, null을 반환한다.
|
|
GetProperties ( object obj ) : string |
인스턴스의 속성 정보를 "속성 명=속성 값" 형태로 만들어 반환합니다.
|
|
GetProperties ( object obj, IDictionary props ) : void |
인스턴스의 속성명, 값을 지정된 IDictionary에 채운다.
|
|
GetProperties ( object obj, StringBuilder result ) : void |
인스턴스의 속성 정보를 "속성 명=속성 값" 형태로 만들어 반환합니다.
|
|
GetTypeDefaultValue ( this type ) : object |
특정 수형의 기본값을 반환합니다. ValueType인 경우는 기본 생성자를 통해 값을 반환하고, ValueType이 아닌 경우에는 null을 반환합니다.
|
|
HasDefaultConstructor ( this type ) : bool |
지정된 수형이 인자가 없는 기본 생성자를 제공하는지 여부를 반환합니다.
|
|
IsCloneableType ( this type, bool &isValueType ) : bool |
지정된 수형이 ICloneable 인터페이스를 상속하여 Clone() 함수를 제공하는 지 여부를 판단한다.
|
|
IsInstanceOfType ( this type, object target ) : bool |
지정된 인스턴스가 지정된 타입의 인스턴스인지 검사한다.
|
|
IsInstantiatableType ( this type ) : bool |
인스턴스 생성을 할 수 있는 타입인가? 즉 new 로 인스턴스를 생성할 수 있는 형식인가?
|
|
IsNullable ( this type ) : bool |
지정한 타입이 null을 할당 받을 수 있는지 검사합니다.
|
|
IsNullableType ( this type ) : bool |
지정한 타입이 Nullable{T} 형식인지 검사합니다.
|
|
IsNumeric ( this value ) : bool |
check specified object is numeric type
|
|
IsNumericType ( this type ) : bool |
type이 Numeric 수형인지 판단합니다. Generic 클래스나 메소드에서 수학연산을 수행하기 위해 꼭 점검해야 합니다.
|
|
IsSameOrSubclassOf ( |
지정된 srcType이 baseType과 같거나 상속받은 클래스인가를 검사한다.
|
|
IsSameOrSubclassOf ( object target, |
지정된 오브젝트 객체의 타입이 기본 타입과 같거나 상속한 타입인지 검사한다.
|
|
IsSameOrSubclassOrImplementedOf ( |
지정된 srcType이 baseType과 같거나 상속받은 클래스인가 또는 baseType이 Interface이고, 이 인터페이스를 구현한 것인지 검사한다.
|
|
IsSameOrSubclassOrImplementedOf ( object target, |
지정된 srcType이 baseType과 같거나 상속받은 클래스인가 또는 baseType이 Interface이고, 이 인터페이스를 구현한 것인지 검사한다.
|
|
IsSerializable ( this type ) : bool |
지정된 형식이 SerializableAttribute를 지정하였는지 판단한다.
|
|
IsSimpleType ( this type ) : bool |
간단한 수형인지 판단한다. System.Type.IsPrimitive 를 이면 간단한 수형이고, stirng, Decimal, DateTime, DBNull 형식이면 SimpleType이라 규정한다. |
|
IsSimpleTypeObject ( this value ) : bool |
간단한 수형인지 판단한다. System.Type.IsPrimitive 를 이면 간단한 수형이고, stirng, Decimal, DateTime, DBNull 형식이면 SimpleType이라 규정한다. |
|
MakeGenericType ( |
개방된 Generic 수형을 innerTypes 들로 Closed Generic 수형을 생성합니다.
|
|
SimpleClassName ( this type ) : string |
System.Type.Name 값에서 Namespace를 뺀 class name 만을 뽑아낸다.
|
|
ToStringWithAssemblyName ( this type ) : string |
Type을 문자열로 표현한다. 형식은 [Type.FullName, AssemblyName] 이 된다. (Assembly의 Qualified Name은 version, public key도 포함하지만 여기서는 포함하지 안는다.)
|
public static CanAssign ( object target, |
||
target | object | 대상 객체 |
assignType | 변경할 타입 | |
Результат | bool |
public static CreateGeneric ( |
||
genericTypeDefinition | Opened Generic Type | |
innerType | Generic의 내부 수형 | |
Результат | object |
public static GetFields ( object obj ) : string | ||
obj | object | 개체 |
Результат | string |
public static GetFields ( object obj, IDictionary infos ) : void | ||
obj | object | 개체 |
infos | IDictionary | 필드 정보를 컬렉션 개체 |
Результат | void |
public static GetFields ( object obj, StringBuilder result ) : void | ||
obj | object | 개체 |
result | StringBuilder | |
Результат | void |
public static GetObjectType ( this obj ) : |
||
obj | this | |
Результат |
public static GetProperties ( object obj ) : string | ||
obj | object | |
Результат | string |
public static GetProperties ( object obj, IDictionary props ) : void | ||
obj | object | 대상 인스턴스 |
props | IDictionary | 속성정보를 담을 |
Результат | void |
public static GetProperties ( object obj, StringBuilder result ) : void | ||
obj | object | 대상 인스턴스 |
result | StringBuilder | 속성정보를 담을 객체 |
Результат | void |
public static GetTypeDefaultValue ( this type ) : object | ||
type | this | |
Результат | object |
public static HasDefaultConstructor ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsCloneableType ( this type, bool &isValueType ) : bool | ||
type | this | |
isValueType | bool | Value 타입인지를 |
Результат | bool |
public static IsInstanceOfType ( this type, object target ) : bool | ||
type | this | |
target | object | |
Результат | bool |
public static IsInstantiatableType ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsNullable ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsNullableType ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsNumeric ( this value ) : bool | ||
value | this | |
Результат | bool |
public static IsNumericType ( this type ) : bool | ||
type | this | 대상 수형 |
Результат | bool |
public static IsSameOrSubclassOf ( |
||
srcType | 검사할 타입 | |
baseType | 기본 타입 | |
Результат | bool |
public static IsSameOrSubclassOf ( object target, |
||
target | object | 검사할 객체 |
baseType | 기본 타입 | |
Результат | bool |
public static IsSameOrSubclassOrImplementedOf ( |
||
srcType | 검사할 타입 | |
baseType | 기본 타입 | |
Результат | bool |
public static IsSameOrSubclassOrImplementedOf ( object target, |
||
target | object | 검사할 객체 |
baseType | 기본 타입 | |
Результат | bool |
public static IsSerializable ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsSimpleType ( this type ) : bool | ||
type | this | |
Результат | bool |
public static IsSimpleTypeObject ( this value ) : bool | ||
value | this | |
Результат | bool |
public static MakeGenericType ( |
||
genericTypeDefinition | ||
Результат |
public static SimpleClassName ( this type ) : string | ||
type | this | 대상 인스턴스의 타입 객체 |
Результат | string |
public static ToStringWithAssemblyName ( this type ) : string | ||
type | this | |
Результат | string |