C# Class Jayrock.Json.JsonNumber

Afficher le fichier Open project: phdesign/NppToolBucket Class Usage Examples

Private Properties

Свойство Type Description
IConvertible System.DateTime
IConvertible TypeCode
IConvertible bool
IConvertible byte
IConvertible char
IConvertible decimal
IConvertible double
IConvertible float
IConvertible int
IConvertible long
IConvertible object
IConvertible sbyte
IConvertible short
IConvertible string
IConvertible uint
IConvertible ulong
IConvertible ushort
Regex System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode Description
Equals ( JsonNumber other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsValid ( string text ) : bool

Determines if given text is a valid number per JSON grammar described in RFC 4627.

IsValid ( string text, NumberStyles styles ) : bool

Determines if given text is a valid number per JSON grammar described in RFC 4627. An additional parameter can be used to specify whether leading and/or trailing white space should be allowed or not.

If whitespace is allowed then any whitespace as per Unicode is permitted, which is a wider set than what, for example, NumberStyles.AllowTrailingWhite and NumberStyles.AllowLeadingWhite list in their documentation.

JsonNumber ( string value ) : System
LogicallyEquals ( object o ) : bool
ToBoolean ( ) : bool
ToByte ( ) : byte
ToChar ( ) : char
ToDateTime ( ) : System.DateTime
ToDecimal ( ) : decimal
ToDouble ( ) : double
ToInt16 ( ) : short
ToInt32 ( ) : int
ToInt64 ( ) : long
ToSingle ( ) : float
ToString ( ) : string

Private Methods

Méthode Description
IConvertible ( IFormatProvider provider ) : System.DateTime
IConvertible ( ) : TypeCode
IConvertible ( IFormatProvider provider ) : bool
IConvertible ( IFormatProvider provider ) : byte
IConvertible ( IFormatProvider provider ) : char
IConvertible ( IFormatProvider provider ) : decimal
IConvertible ( IFormatProvider provider ) : double
IConvertible ( IFormatProvider provider ) : float
IConvertible ( IFormatProvider provider ) : int
IConvertible ( IFormatProvider provider ) : long
IConvertible ( Type conversionType, IFormatProvider provider ) : object
IConvertible ( IFormatProvider provider ) : sbyte
IConvertible ( IFormatProvider provider ) : short
IConvertible ( IFormatProvider provider ) : string
IConvertible ( IFormatProvider provider ) : uint
IConvertible ( IFormatProvider provider ) : ulong
IConvertible ( IFormatProvider provider ) : ushort
Regex ( bool lws, bool rws ) : Regex

Method Details

Equals() public méthode

public Equals ( JsonNumber other ) : bool
other JsonNumber
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsValid() public static méthode

Determines if given text is a valid number per JSON grammar described in RFC 4627.
public static IsValid ( string text ) : bool
text string
Résultat bool

IsValid() public static méthode

Determines if given text is a valid number per JSON grammar described in RFC 4627. An additional parameter can be used to specify whether leading and/or trailing white space should be allowed or not.
If whitespace is allowed then any whitespace as per Unicode is permitted, which is a wider set than what, for example, NumberStyles.AllowTrailingWhite and NumberStyles.AllowLeadingWhite list in their documentation.
public static IsValid ( string text, NumberStyles styles ) : bool
text string
styles NumberStyles
Résultat bool

JsonNumber() public méthode

public JsonNumber ( string value ) : System
value string
Résultat System

LogicallyEquals() public méthode

public LogicallyEquals ( object o ) : bool
o object
Résultat bool

ToBoolean() public méthode

public ToBoolean ( ) : bool
Résultat bool

ToByte() public méthode

public ToByte ( ) : byte
Résultat byte

ToChar() public méthode

public ToChar ( ) : char
Résultat char

ToDateTime() public méthode

public ToDateTime ( ) : System.DateTime
Résultat System.DateTime

ToDecimal() public méthode

public ToDecimal ( ) : decimal
Résultat decimal

ToDouble() public méthode

public ToDouble ( ) : double
Résultat double

ToInt16() public méthode

public ToInt16 ( ) : short
Résultat short

ToInt32() public méthode

public ToInt32 ( ) : int
Résultat int

ToInt64() public méthode

public ToInt64 ( ) : long
Résultat long

ToSingle() public méthode

public ToSingle ( ) : float
Résultat float

ToString() public méthode

public ToString ( ) : string
Résultat string