C# Class System.Runtime.Serialization.Plists.Extensions

Extensions and helpers for plist serialization.
ファイルを表示 Open project: ChadBurggraf/plists-cs

Public Methods

Method Description
GetConcreteTypeIfNullable ( this type ) : Type

Gets the specified type's concrete type of it is an instance of Nullable{T}. If the type is not null-able, it is returned as-is.

IsAscii ( this value ) : bool

Gets a value indicating whether the given string is all ASCII.

IsCollection ( this type ) : bool

Gets a value indicating whether the specified type is a collection type.

IsDefaultValue ( this type, object value ) : bool

Gets a value indicating whether the given value is the default value for the specified type.

IsPrimitiveOrEnum ( this type ) : bool

Gets a value indicating whether the specified type is an enum or primitive or semi-primitive (e.g., string) type.

ToBinaryString ( this value ) : string

Converts the given value into its binary representation as a string.

Method Details

GetConcreteTypeIfNullable() public static method

Gets the specified type's concrete type of it is an instance of Nullable{T}. If the type is not null-able, it is returned as-is.
public static GetConcreteTypeIfNullable ( this type ) : Type
type this The type to get the concrete type of.
return System.Type

IsAscii() public static method

Gets a value indicating whether the given string is all ASCII.
public static IsAscii ( this value ) : bool
value this The string to check.
return bool

IsCollection() public static method

Gets a value indicating whether the specified type is a collection type.
public static IsCollection ( this type ) : bool
type this The type to check.
return bool

IsDefaultValue() public static method

Gets a value indicating whether the given value is the default value for the specified type.
public static IsDefaultValue ( this type, object value ) : bool
type this The type to check the value against.
value object The value to check.
return bool

IsPrimitiveOrEnum() public static method

Gets a value indicating whether the specified type is an enum or primitive or semi-primitive (e.g., string) type.
public static IsPrimitiveOrEnum ( this type ) : bool
type this The type to check.
return bool

ToBinaryString() public static method

Converts the given value into its binary representation as a string.
public static ToBinaryString ( this value ) : string
value this The value to convert.
return string