本文整理汇总了C#中JSONReader.ReadDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# JSONReader.ReadDateTime方法的具体用法?C# JSONReader.ReadDateTime怎么用?C# JSONReader.ReadDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSONReader
的用法示例。
在下文中一共展示了JSONReader.ReadDateTime方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 "LastWriteTime" : {
LastWriteTime = JSONReader.ReadDateTime ();
break;
}
case "LastCheckpointTime" : {
LastCheckpointTime = JSONReader.ReadDateTime ();
break;
}
case "NextCheckpointTime" : {
NextCheckpointTime = JSONReader.ReadDateTime ();
break;
}
case "CheckpointValue" : {
CheckpointValue = 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 "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
}
示例3: 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 "Created" : {
Created = JSONReader.ReadDateTime ();
break;
}
case "Modified" : {
Modified = JSONReader.ReadDateTime ();
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 "Protocol" : {
Protocol = JSONReader.ReadString ();
break;
}
case "Secret" : {
Secret = JSONReader.ReadBinary ();
break;
}
case "Encryption" : {
Encryption = JSONReader.ReadString ();
break;
}
case "Authentication" : {
Authentication = JSONReader.ReadString ();
break;
}
case "Ticket" : {
Ticket = JSONReader.ReadBinary ();
break;
}
case "Expires" : {
Expires = JSONReader.ReadDateTime ();
break;
}
default : {
break;
}
}
// check up that all the required elements are present
}
示例5: 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 "Names" : {
// Have a sequence of values
bool _Going = JSONReader.StartArray ();
Names = new List <string> ();
while (_Going) {
string _Item = JSONReader.ReadString ();
Names.Add (_Item);
_Going = JSONReader.NextArray ();
}
break;
}
case "Updated" : {
Updated = JSONReader.ReadDateTime ();
break;
}
case "NotaryToken" : {
NotaryToken = JSONReader.ReadString ();
break;
}
default : {
base.DeserializeToken(JSONReader, Tag);
break;
}
}
// check up that all the required elements are present
}