C# Class KellermanSoftware.CompareNetObjects.TypeHelper

Methods for detecting
显示文件 Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CanHaveChildren ( Type type ) : bool

Returns true if the type can have children

IsArray ( Type type ) : bool

True if the type is an array

IsByteArray ( Type type ) : bool

Returns true if it is a byte array

IsClass ( Type type ) : bool

Return true if the type is a class

IsDataRow ( Type type ) : bool

Returns true if the type is a data row

IsDataTable ( Type type ) : bool

Returns true if the type is a data table

IsDataset ( Type type ) : bool

Returns true if the type is a dataset

IsDateTime ( Type type ) : bool

Return true if the type is a DateTime

IsDateTimeOffset ( Type type ) : bool

Return true if the type is a DateTimeOffset

IsDouble ( Type type ) : bool

Return true if the type is a Double

IsEnum ( Type type ) : bool

Return true if the type is an enum

IsEnumerable ( Type type ) : bool

Return true if the type is an Enumerable

IsFont ( Type type ) : bool

Returns true if the type is a font

IsHashSet ( Type type ) : bool

Return true if the type is a hashset

IsIDictionary ( Type type ) : bool

Return true if the type is a dictionary

IsIList ( Type type ) : bool

Return true if the type is a List

IsInterface ( Type type ) : bool

Return true if the type is an interface

IsIpEndPoint ( Type type ) : bool

Returns true if the type is an IPEndPoint

IsPointer ( Type type ) : bool

Return true if the type is a pointer

IsRuntimeType ( Type type ) : bool

Returns true if the Type is a Runtime type

IsSimpleType ( Type type ) : bool

Return true if the type is a primitive type, date, decimal, string, or GUID

IsString ( Type type ) : bool

Return true if the type is a string

IsStruct ( Type type ) : bool

Returns true if it is a struct

IsTimespan ( Type type ) : bool

Returns true if the type is a timespan

IsUri ( Type type ) : bool

Return true if the type is a URI

Method Details

CanHaveChildren() public static method

Returns true if the type can have children
public static CanHaveChildren ( Type type ) : bool
type System.Type
return bool

IsArray() public static method

True if the type is an array
public static IsArray ( Type type ) : bool
type System.Type
return bool

IsByteArray() public static method

Returns true if it is a byte array
public static IsByteArray ( Type type ) : bool
type System.Type
return bool

IsClass() public static method

Return true if the type is a class
public static IsClass ( Type type ) : bool
type System.Type
return bool

IsDataRow() public static method

Returns true if the type is a data row
public static IsDataRow ( Type type ) : bool
type System.Type
return bool

IsDataTable() public static method

Returns true if the type is a data table
public static IsDataTable ( Type type ) : bool
type System.Type
return bool

IsDataset() public static method

Returns true if the type is a dataset
public static IsDataset ( Type type ) : bool
type System.Type
return bool

IsDateTime() public static method

Return true if the type is a DateTime
public static IsDateTime ( Type type ) : bool
type System.Type
return bool

IsDateTimeOffset() public static method

Return true if the type is a DateTimeOffset
public static IsDateTimeOffset ( Type type ) : bool
type System.Type
return bool

IsDouble() public static method

Return true if the type is a Double
public static IsDouble ( Type type ) : bool
type System.Type
return bool

IsEnum() public static method

Return true if the type is an enum
public static IsEnum ( Type type ) : bool
type System.Type
return bool

IsEnumerable() public static method

Return true if the type is an Enumerable
public static IsEnumerable ( Type type ) : bool
type System.Type
return bool

IsFont() public static method

Returns true if the type is a font
public static IsFont ( Type type ) : bool
type System.Type The type1.
return bool

IsHashSet() public static method

Return true if the type is a hashset
public static IsHashSet ( Type type ) : bool
type System.Type
return bool

IsIDictionary() public static method

Return true if the type is a dictionary
public static IsIDictionary ( Type type ) : bool
type System.Type
return bool

IsIList() public static method

Return true if the type is a List
public static IsIList ( Type type ) : bool
type System.Type
return bool

IsInterface() public static method

Return true if the type is an interface
public static IsInterface ( Type type ) : bool
type System.Type
return bool

IsIpEndPoint() public static method

Returns true if the type is an IPEndPoint
public static IsIpEndPoint ( Type type ) : bool
type System.Type
return bool

IsPointer() public static method

Return true if the type is a pointer
public static IsPointer ( Type type ) : bool
type System.Type
return bool

IsRuntimeType() public static method

Returns true if the Type is a Runtime type
public static IsRuntimeType ( Type type ) : bool
type System.Type
return bool

IsSimpleType() public static method

Return true if the type is a primitive type, date, decimal, string, or GUID
public static IsSimpleType ( Type type ) : bool
type System.Type
return bool

IsString() public static method

Return true if the type is a string
public static IsString ( Type type ) : bool
type System.Type
return bool

IsStruct() public static method

Returns true if it is a struct
public static IsStruct ( Type type ) : bool
type System.Type
return bool

IsTimespan() public static method

Returns true if the type is a timespan
public static IsTimespan ( Type type ) : bool
type System.Type
return bool

IsUri() public static method

Return true if the type is a URI
public static IsUri ( Type type ) : bool
type System.Type
return bool