C# Class TryParseWithDefault, SumoVizUnity_ModSem

Show file Open project: benjaminaaron/SumoVizUnity_ModSem Class Usage Examples

Public Methods

Method Description
ToByte ( string valueToParse, Byte defaultValue ) : Byte
ToDecimal ( string valueToParse, Decimal defaultValue ) : Decimal
ToDouble ( string valueToParse, Double defaultValue ) : Double
ToInt16 ( string valueToParse, Int16 defaultValue ) : Int16
ToInt32 ( string valueToParse, Int32 defaultValue ) : Int32
ToInt64 ( string valueToParse, System.Int64 defaultValue ) : System.Int64
ToSByte ( string valueToParse, SByte defaultValue ) : SByte
ToSingle ( string valueToParse, Single defaultValue ) : Single
ToUInt16 ( string valueToParse, UInt16 defaultValue ) : UInt16
ToUInt32 ( string valueToParse, UInt32 defaultValue ) : UInt32
ToUInt64 ( string valueToParse, System.UInt64 defaultValue ) : System.UInt64

Method Details

ToByte() public static method

public static ToByte ( string valueToParse, Byte defaultValue ) : Byte
valueToParse string
defaultValue Byte
return Byte

ToDecimal() public static method

public static ToDecimal ( string valueToParse, Decimal defaultValue ) : Decimal
valueToParse string
defaultValue Decimal
return Decimal

ToDouble() public static method

public static ToDouble ( string valueToParse, Double defaultValue ) : Double
valueToParse string
defaultValue Double
return Double

ToInt16() public static method

public static ToInt16 ( string valueToParse, Int16 defaultValue ) : Int16
valueToParse string
defaultValue System.Int16
return System.Int16

ToInt32() public static method

public static ToInt32 ( string valueToParse, Int32 defaultValue ) : Int32
valueToParse string
defaultValue System.Int32
return System.Int32

ToInt64() public static method

public static ToInt64 ( string valueToParse, System.Int64 defaultValue ) : System.Int64
valueToParse string
defaultValue System.Int64
return System.Int64

ToSByte() public static method

public static ToSByte ( string valueToParse, SByte defaultValue ) : SByte
valueToParse string
defaultValue SByte
return SByte

ToSingle() public static method

public static ToSingle ( string valueToParse, Single defaultValue ) : Single
valueToParse string
defaultValue Single
return Single

ToUInt16() public static method

public static ToUInt16 ( string valueToParse, UInt16 defaultValue ) : UInt16
valueToParse string
defaultValue System.UInt16
return System.UInt16

ToUInt32() public static method

public static ToUInt32 ( string valueToParse, UInt32 defaultValue ) : UInt32
valueToParse string
defaultValue System.UInt32
return System.UInt32

ToUInt64() public static method

public static ToUInt64 ( string valueToParse, System.UInt64 defaultValue ) : System.UInt64
valueToParse string
defaultValue System.UInt64
return System.UInt64