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


C# DeserializeContext.ReadDateTime方法代码示例

本文整理汇总了C#中DeserializeContext.ReadDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# DeserializeContext.ReadDateTime方法的具体用法?C# DeserializeContext.ReadDateTime怎么用?C# DeserializeContext.ReadDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DeserializeContext的用法示例。


在下文中一共展示了DeserializeContext.ReadDateTime方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       Cookie = context.ReadObject<Signed<SignCheckCookie>>();
       Certificate = context.ReadObject<Certificate>();
       SignDateTime = context.ReadDateTime();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:7,代码来源:SignatureRequestSignCheck.cs

示例2: Deserialize

 protected override void Deserialize(DeserializeContext context)
 {
     base.Deserialize(context);
       Id = context.ReadGuid();
       Title = context.ReadMultiLanguageString();
       Description = context.ReadMultiLanguageString();
       this.questions = context.ReadObjectList<Question>();
       VotingBeginDate = context.ReadDateTime();
       VotingEndDate = context.ReadDateTime();
       AuthorityCount = context.ReadInt32();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:11,代码来源:Voting.cs

示例3: Deserialize

 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       VotingId = context.ReadGuid();
       Title = context.ReadMultiLanguageString();
       Description = context.ReadMultiLanguageString();
       Url = context.ReadMultiLanguageString();
       VotingBeginDate = context.ReadDateTime();
       VotingEndDate = context.ReadDateTime();
       GroupId = context.ReadInt32();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:15,代码来源:VotingParameters.cs

示例4: Deserialize

 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       VotingId = context.ReadGuid();
       VoterId = context.ReadGuid();
       Ballots = context.ReadObjectList<Ballot>();
       Date = context.ReadDateTime();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:12,代码来源:Envelope.cs

示例5: Deserialize

 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       VotingId = context.ReadGuid();
       AuthorityIndex = context.ReadInt32();
       PartialDeciphers = context.ReadObjectList<PartialDecipher>();
       EnvelopeCount = context.ReadInt32();
       EnvelopeHash = context.ReadBytes();
       Date = context.ReadDateTime();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:14,代码来源:PartialDecipherList.cs

示例6: Deserialize

 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       CreationDate = context.ReadDateTime();
       Randomness = context.ReadBytes();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:6,代码来源:SignCheckCookie.cs

示例7: Deserialize

        /// <summary>
        /// Deserializes binary data to object.
        /// </summary>
        /// <param name="context">Context for deserialization</param>
        protected override void Deserialize(DeserializeContext context, byte version)
        {
            base.Deserialize(context, version);

              if (!context.ReadBytes().Equal(MagicTypeConstant))
            throw new InvalidOperationException("Magic type contant wrong.");

              Id = new Guid(context.ReadBytes());
              CreationDate = context.ReadDateTime();
              PublicKey = context.ReadBytes();
              SelfSignature = context.ReadBytes();
              this.attributes = context.ReadObjectList<CertificateAttribute>();
              this.signatures = context.ReadObjectList<Signature>();

              PrivateKeyStatus = (PrivateKeyStatus)context.ReadInt32();

              switch (PrivateKeyStatus)
              {
            case PrivateKeyStatus.Unavailable:
              break;
            case Crypto.PrivateKeyStatus.Unencrypted:
              this.privateKeyData = context.ReadBytes();
              break;
            case Crypto.PrivateKeyStatus.Encrypted:
              this.privateKeyData = context.ReadBytes();
              this.privateKeySalt = context.ReadBytes();
              this.passphraseSalt = context.ReadBytes();
              break;
            default:
              throw new InvalidOperationException("Unknown or bad private key status.");
              }
        }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:36,代码来源:Certificate.cs

示例8: Deserialize

 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       IssuerId = context.ReadGuid();
       ValidFrom = context.ReadDateTime();
       ValidUntil = context.ReadDateTime();
       RevokedCertificates = context.ReadGuidList();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:12,代码来源:RevocationList.cs

示例9: Deserialize

 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       SignerId = context.ReadGuid();
       Data = context.ReadBytes();
       ValidFrom = context.ReadDateTime();
       ValidUntil = context.ReadDateTime();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:12,代码来源:Signature.cs


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