C# Class Gum.DataTypes.VariableSaveExtensionMethods

ファイルを表示 Open project: vchelaru/FlatRedBall

Public Methods

Method Description
Clone ( this whatToClone ) : VariableSave
FixEnumerations ( this variableSave ) : bool

Converts integer values to their corresponding enumeration values. This should be called after variable saves are loaded from XML.

GetIsEnumeration ( this variableSave ) : bool
GetIsFileFromRoot ( this variable, ElementSave element ) : bool
GetIsFileFromRoot ( this variable, InstanceSave instance ) : bool
GetPrimitiveType ( string typeAsString ) : Type
GetRuntimeType ( this variableSave ) : Type
GetTypeConverter ( this variableSave, ElementSave container = null ) : TypeConverter
IsEnumeration ( this variableSave ) : bool
IsState ( this variableSave, ElementSave container ) : bool
IsState ( this variableSave, ElementSave container, ElementSave &categoryContainer, StateSaveCategory &category, bool recursive = true ) : bool

Private Methods

Method Description
GetTypeConverter ( this variableSave, Type type ) : TypeConverter

Method Details

Clone() public static method

public static Clone ( this whatToClone ) : VariableSave
whatToClone this
return Gum.DataTypes.Variables.VariableSave

FixEnumerations() public static method

Converts integer values to their corresponding enumeration values. This should be called after variable saves are loaded from XML.
public static FixEnumerations ( this variableSave ) : bool
variableSave this The VariableSave to fix.
return bool

GetIsEnumeration() public static method

public static GetIsEnumeration ( this variableSave ) : bool
variableSave this
return bool

GetIsFileFromRoot() public static method

public static GetIsFileFromRoot ( this variable, ElementSave element ) : bool
variable this
element ElementSave
return bool

GetIsFileFromRoot() public static method

public static GetIsFileFromRoot ( this variable, InstanceSave instance ) : bool
variable this
instance InstanceSave
return bool

GetPrimitiveType() public static method

public static GetPrimitiveType ( string typeAsString ) : Type
typeAsString string
return System.Type

GetRuntimeType() public static method

public static GetRuntimeType ( this variableSave ) : Type
variableSave this
return System.Type

GetTypeConverter() public static method

public static GetTypeConverter ( this variableSave, ElementSave container = null ) : TypeConverter
variableSave this
container ElementSave
return System.ComponentModel.TypeConverter

IsEnumeration() public static method

public static IsEnumeration ( this variableSave ) : bool
variableSave this
return bool

IsState() public static method

public static IsState ( this variableSave, ElementSave container ) : bool
variableSave this
container ElementSave
return bool

IsState() public static method

public static IsState ( this variableSave, ElementSave container, ElementSave &categoryContainer, StateSaveCategory &category, bool recursive = true ) : bool
variableSave this
container ElementSave
categoryContainer ElementSave
category Gum.DataTypes.Variables.StateSaveCategory
recursive bool
return bool