C# Class ATUL_v1.JsonMethods

Afficher le fichier Open project: godaddy/ATUL

Méthodes publiques

Méthode Description
GetJSONString ( DataTable Dt ) : string

Gets the JSON string.

StringToJSONString ( string sValue ) : string

String to JSON string.

ToJson ( DataSet data ) : object>.Dictionary

Toes the json.

ToJson ( DataTable table ) : object>.Dictionary

Toes the json.

XmlToJSON ( XmlDocument xmlDoc ) : string

Private Methods

Méthode Description
OutputNode ( string childname, object alChild, StringBuilder sbJSON, bool showNodeName ) : void
RowsToDictionary ( DataTable table ) : object>>.List
SafeJSON ( string sIn ) : string
StoreChildNode ( SortedList childNodeNames, string nodeName, object nodeValue ) : void
XmlToJSONnode ( StringBuilder sbJSON, XmlElement node, bool showNodeName ) : void

Method Details

GetJSONString() public static méthode

Gets the JSON string.
public static GetJSONString ( DataTable Dt ) : string
Dt System.Data.DataTable The dt.
Résultat string

StringToJSONString() public static méthode

String to JSON string.
public static StringToJSONString ( string sValue ) : string
sValue string The s value.
Résultat string

ToJson() public static méthode

Toes the json.
public static ToJson ( DataSet data ) : object>.Dictionary
data System.Data.DataSet The data.
Résultat object>.Dictionary

ToJson() public static méthode

Toes the json.
public static ToJson ( DataTable table ) : object>.Dictionary
table System.Data.DataTable The table.
Résultat object>.Dictionary

XmlToJSON() public static méthode

public static XmlToJSON ( XmlDocument xmlDoc ) : string
xmlDoc System.Xml.XmlDocument
Résultat string