C# Class Woopsa.WoopsaTypeUtils

Afficher le fichier Open project: woopsa-protocol/Woopsa Class Usage Examples

Méthodes publiques

Méthode Description
GetGenericEnumerableItemType ( Type type, Type &itemsType ) : bool
InferWoopsaType ( Type targetType, WoopsaValueType &resultType ) : bool

Determines the WoopsaValueType based on a .NET type.

IsWoopsaReferenceType ( Type type ) : bool

Determines if the .net type matches a Woopsa reference type (object) Some value types of .net have no corresponding Woopsa type, and are not reference type.

IsWoopsaValueType ( Type type ) : bool

Determines if the .net type matches a WoopsaValueType Some .net reference types (like string) are WoopsaValueType

Method Details

GetGenericEnumerableItemType() public static méthode

public static GetGenericEnumerableItemType ( Type type, Type &itemsType ) : bool
type System.Type
itemsType System.Type
Résultat bool

InferWoopsaType() public static méthode

Determines the WoopsaValueType based on a .NET type.
public static InferWoopsaType ( Type targetType, WoopsaValueType &resultType ) : bool
targetType System.Type The .NET type to try to get the WoopsaValueType from
resultType WoopsaValueType The inferred WoopsaValueType. If the type cannot be inferred, this value will be WoopsaValueType.Null
Résultat bool

IsWoopsaReferenceType() public static méthode

Determines if the .net type matches a Woopsa reference type (object) Some value types of .net have no corresponding Woopsa type, and are not reference type.
public static IsWoopsaReferenceType ( Type type ) : bool
type System.Type The .NET type to test
Résultat bool

IsWoopsaValueType() public static méthode

Determines if the .net type matches a WoopsaValueType Some .net reference types (like string) are WoopsaValueType
public static IsWoopsaValueType ( Type type ) : bool
type System.Type The .NET type to test
Résultat bool