C# Класс System.Runtime.Serialization.Plists.Extensions

Extensions and helpers for plist serialization.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetConcreteTypeIfNullable() публичный статический Метод

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.
Результат System.Type

IsAscii() публичный статический Метод

Gets a value indicating whether the given string is all ASCII.
public static IsAscii ( this value ) : bool
value this The string to check.
Результат bool

IsCollection() публичный статический Метод

Gets a value indicating whether the specified type is a collection type.
public static IsCollection ( this type ) : bool
type this The type to check.
Результат bool

IsDefaultValue() публичный статический Метод

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.
Результат bool

IsPrimitiveOrEnum() публичный статический Метод

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.
Результат bool

ToBinaryString() публичный статический Метод

Converts the given value into its binary representation as a string.
public static ToBinaryString ( this value ) : string
value this The value to convert.
Результат string