C# Class Qowaiv.Reflection.QowaivType

Helper class for some operations on Type.
Mostra file Open project: Corniel/Qowaiv

Public Methods

Method Description
GetSingleValueObjectAttribute ( Type objectType ) : SingleValueObjectAttribute

Gets the SingleValueObjectAttribute of the type, if any.

IsIJsonSerializable ( Type objectType ) : bool

Returns true if the object type is an IJsonSerializable.

IsNullable ( Type objectType ) : bool

Returns true if the object is null-able, otherwise false.

IsNullableIJsonSerializable ( Type objectType ) : bool

Returns true if the object type is a null-able IJsonSerializable.

IsSingleValueObject ( Type objectType ) : bool

Returns true if the type is a Single Value Object, otherwise false.

Method Details

GetSingleValueObjectAttribute() public static method

Gets the SingleValueObjectAttribute of the type, if any.
public static GetSingleValueObjectAttribute ( Type objectType ) : SingleValueObjectAttribute
objectType System.Type /// The type to test for. ///
return SingleValueObjectAttribute

IsIJsonSerializable() public static method

Returns true if the object type is an IJsonSerializable.
public static IsIJsonSerializable ( Type objectType ) : bool
objectType System.Type /// The type to test for. ///
return bool

IsNullable() public static method

Returns true if the object is null-able, otherwise false.
public static IsNullable ( Type objectType ) : bool
objectType System.Type /// The type to test for. ///
return bool

IsNullableIJsonSerializable() public static method

Returns true if the object type is a null-able IJsonSerializable.
public static IsNullableIJsonSerializable ( Type objectType ) : bool
objectType System.Type /// The type to test for. ///
return bool

IsSingleValueObject() public static method

Returns true if the type is a Single Value Object, otherwise false.
public static IsSingleValueObject ( Type objectType ) : bool
objectType System.Type /// The type to test for. ///
return bool