本文整理汇总了C#中JSONReader.ReadBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# JSONReader.ReadBoolean方法的具体用法?C# JSONReader.ReadBoolean怎么用?C# JSONReader.ReadBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSONReader
的用法示例。
在下文中一共展示了JSONReader.ReadBoolean方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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 "TransactionID" : {
TransactionID = JSONReader.ReadString ();
break;
}
case "PrimaryKey" : {
PrimaryKey = JSONReader.ReadString ();
break;
}
case "PriorTransactionID" : {
PriorTransactionID = JSONReader.ReadString ();
break;
}
case "Action" : {
Action = JSONReader.ReadString ();
break;
}
case "Added" : {
Added = JSONReader.ReadDateTime ();
break;
}
case "Keys" : {
// Have a sequence of values
bool _Going = JSONReader.StartArray ();
Keys = new List <IndexTerm> ();
while (_Going) {
var _Item = IndexTerm.FromTagged (JSONReader); // a tagged structure
Keys.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
case "Data" : {
Data = JSONReader.ReadBinary ();
break;
}
case "Text" : {
Text = JSONReader.ReadString ();
break;
}
case "Pending" : {
Pending = JSONReader.ReadBoolean ();
break;
}
case "Commit" : {
Commit = JSONReader.ReadBoolean ();
break;
}
case "Rollback" : {
Rollback = JSONReader.ReadBoolean ();
break;
}
default : {
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 "Valid" : {
Valid = JSONReader.ReadBoolean ();
break;
}
case "Minimum" : {
Minimum = JSONReader.ReadInteger32 ();
break;
}
case "Maximum" : {
Maximum = JSONReader.ReadInteger32 ();
break;
}
case "InvalidCharacters" : {
InvalidCharacters = JSONReader.ReadString ();
break;
}
case "Reason" : {
Reason = JSONReader.ReadString ();
break;
}
default : {
base.DeserializeToken(JSONReader, Tag);
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 "AutoGenerate" : {
AutoGenerate = JSONReader.ReadBoolean ();
break;
}
case "Entries" : {
// Have a sequence of values
bool _Going = JSONReader.StartArray ();
Entries = new List <PasswordEntry> ();
while (_Going) {
// an untagged structure.
var _Item = new PasswordEntry (JSONReader);
Entries.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
case "NeverAsk" : {
// Have a sequence of values
bool _Going = JSONReader.StartArray ();
NeverAsk = new List <string> ();
while (_Going) {
string _Item = JSONReader.ReadString ();
NeverAsk.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例4: DeserializeToken
public new void DeserializeToken(JSONReader JSONReader, string Tag)
{
switch (Tag) {
case "Account" : {
Account = JSONReader.ReadString ();
break;
}
case "Domain" : {
Domain = JSONReader.ReadString ();
break;
}
case "HavePasscode" : {
HavePasscode = JSONReader.ReadBoolean ();
break;
}
case "HaveDisplay" : {
HaveDisplay = JSONReader.ReadBoolean ();
break;
}
case "Challenge" : {
Challenge = JSONReader.ReadBinary ();
break;
}
case "DeviceID" : {
DeviceID = JSONReader.ReadString ();
break;
}
case "DeviceURI" : {
DeviceURI = JSONReader.ReadString ();
break;
}
case "DeviceImage" : {
DeviceImage = new ImageLink (JSONReader);
break;
}
case "DeviceName" : {
DeviceName = JSONReader.ReadString ();
break;
}
default : {
((BindRequest)this).DeserializeToken(JSONReader, Tag);
break;
}
}
// check up that all the required elements are present
}
示例5: DeserializeToken
public new void DeserializeToken(JSONReader JSONReader, string Tag)
{
switch (Tag) {
case "Identifier" : {
Identifier = new Identifier (JSONReader);
break;
}
case "Policy" : {
bool _Going = JSONReader.StartArray ();
Policy = new List <String> ();
while (_Going) {
String _Item = JSONReader.ReadString ();
Policy.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
case "ProveIt" : {
ProveIt = JSONReader.ReadBoolean ();
break;
}
default : {
((QRequest)this).DeserializeToken(JSONReader, Tag);
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
}