当前位置: 首页>>代码示例>>C#>>正文


C# JSONReader.ReadInteger32方法代码示例

本文整理汇总了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
			}
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:23,代码来源:RecryptProtocol.cs

示例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
			}
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:22,代码来源:Schema.cs

示例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
			}
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:34,代码来源:MeshProtocol.cs

示例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
 }
开发者ID:hallambaker,项目名称:Omnibroker,代码行数:41,代码来源:Connection.cs

示例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
 }
开发者ID:hallambaker,项目名称:Omnibroker,代码行数:33,代码来源:Query.cs

示例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
			}
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:61,代码来源:SchemaMesh.cs


注:本文中的JSONReader.ReadInteger32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。