本文整理汇总了C#中JSONReader.ReadInteger32方法的典型用法代码示例。如果您正苦于以下问题:C# JSONReader.ReadInteger32方法的具体用法?C# JSONReader.ReadInteger32怎么用?C# JSONReader.ReadInteger32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSONReader
的用法示例。
在下文中一共展示了JSONReader.ReadInteger32方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeserializeToken
/// <summary>
/// Having read a tag, process the corresponding value data.
/// </summary>
/// <param name="JSONReader"></param>
/// <param name="Tag"></param>
public override void DeserializeToken (JSONReader JSONReader, string Tag) {
switch (Tag) {
case "Status" : {
Status = JSONReader.ReadInteger32 ();
break;
}
case "StatusDescription" : {
StatusDescription = JSONReader.ReadString ();
break;
}
default : {
base.DeserializeToken(JSONReader, Tag);
break;
}
}
// check up that all the required elements are present
}
示例2: DeserializeToken
/// <summary>
/// Having read a tag, process the corresponding value data.
/// </summary>
/// <param name="JSONReader">The input stream</param>
/// <param name="Tag">The tag</param>
public override void DeserializeToken (JSONReader JSONReader, string Tag) {
switch (Tag) {
case "Key" : {
Key = JSONReader.ReadString ();
break;
}
case "Offset" : {
Offset = JSONReader.ReadInteger32 ();
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例3: DeserializeToken
/// <summary>
/// Having read a tag, process the corresponding value data.
/// </summary>
/// <param name="JSONReader">The input stream</param>
/// <param name="Tag">The tag</param>
public override void DeserializeToken (JSONReader JSONReader, string Tag) {
switch (Tag) {
case "NotBefore" : {
NotBefore = JSONReader.ReadDateTime ();
break;
}
case "Before" : {
Before = JSONReader.ReadDateTime ();
break;
}
case "MaxEntries" : {
MaxEntries = JSONReader.ReadInteger32 ();
break;
}
case "MaxBytes" : {
MaxBytes = JSONReader.ReadInteger32 ();
break;
}
case "PageKey" : {
PageKey = JSONReader.ReadString ();
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例4: DeserializeToken
public virtual void DeserializeToken(JSONReader JSONReader, string Tag)
{
switch (Tag) {
case "Name" : {
Name = JSONReader.ReadString ();
break;
}
case "Port" : {
Port = JSONReader.ReadInteger32 ();
break;
}
case "Address" : {
Address = JSONReader.ReadString ();
break;
}
case "Priority" : {
Priority = JSONReader.ReadInteger32 ();
break;
}
case "Weight" : {
Weight = JSONReader.ReadInteger32 ();
break;
}
case "Transport" : {
Transport = JSONReader.ReadString ();
break;
}
case "Expires" : {
Expires = JSONReader.ReadDateTime ();
break;
}
case "Cryptographic" : {
Cryptographic = new Cryptographic (JSONReader);
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例5: DeserializeToken
public virtual void DeserializeToken(JSONReader JSONReader, string Tag)
{
switch (Tag) {
case "IPAddress" : {
IPAddress = JSONReader.ReadString ();
break;
}
case "IPPort" : {
IPPort = JSONReader.ReadInteger32 ();
break;
}
case "Transport" : {
Transport = JSONReader.ReadString ();
break;
}
case "TransportPolicy" : {
TransportPolicy = JSONReader.ReadString ();
break;
}
case "ProtocolPolicy" : {
ProtocolPolicy = JSONReader.ReadString ();
break;
}
case "Advice" : {
Advice = new Advice (JSONReader);
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例6: DeserializeToken
/// <summary>
/// Having read a tag, process the corresponding value data.
/// </summary>
/// <param name="JSONReader">The input stream</param>
/// <param name="Tag">The tag</param>
public override void DeserializeToken (JSONReader JSONReader, string Tag) {
switch (Tag) {
case "ServiceName" : {
ServiceName = JSONReader.ReadString ();
break;
}
case "Port" : {
Port = JSONReader.ReadInteger32 ();
break;
}
case "Prefix" : {
Prefix = JSONReader.ReadString ();
break;
}
case "Security" : {
// Have a sequence of values
bool _Going = JSONReader.StartArray ();
Security = new List <string> ();
while (_Going) {
string _Item = JSONReader.ReadString ();
Security.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
case "UserName" : {
UserName = JSONReader.ReadString ();
break;
}
case "Password" : {
Password = JSONReader.ReadString ();
break;
}
case "URI" : {
URI = JSONReader.ReadString ();
break;
}
case "Authentication" : {
Authentication = JSONReader.ReadString ();
break;
}
case "TimeOut" : {
TimeOut = JSONReader.ReadInteger32 ();
break;
}
case "Polling" : {
Polling = JSONReader.ReadBoolean ();
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}