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


C# DeserializeContext.ReadObjectList方法代码示例

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


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

示例1: Deserialize

        protected override void Deserialize(DeserializeContext context, byte version)
        {
            base.Deserialize(context, version);

              if (Exception == null)
              {
            SignChecks = context.ReadObjectList<Signed<SignatureRequestSignCheck>>();
            EncryptedSignatureRequest = context.ReadBytes();
              }
        }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:10,代码来源:FetchSignCheckListResponse.cs

示例2: Deserialize

 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       Title = context.ReadMultiLanguageString();
       Descrption = context.ReadMultiLanguageString();
       Url = context.ReadMultiLanguageString();
       Questions = context.ReadObjectList<Question>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:8,代码来源:VotingData.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();
       AuthorityIndex = context.ReadInt32();
       PartialDeciphers = context.ReadObjectList<PartialDecipher>();
       EnvelopeCount = context.ReadInt32();
       EnvelopeHash = context.ReadBytes();
       Date = context.ReadDateTime();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:14,代码来源:PartialDecipherList.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);
       P = context.ReadBigInt();
       Q = context.ReadBigInt();
       G = context.ReadBigInt();
       F = context.ReadBigInt();
       Thereshold = context.ReadInt32();
       AuthorityCount = context.ReadInt32();
       ProofCount = context.ReadInt32();
       this.questions = context.ReadObjectList<Question>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:16,代码来源:BaseParameters.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);
       Parameters = context.ReadObject<Signed<VotingParameters>>();
       PublicKeyParts = context.ReadObjectList<Signed<ShareResponse>>();
       CastEnvelopeCount = context.ReadInt32();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:11,代码来源:VotingMaterial.cs

示例6: 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 (Exception == null)
              {
            this.votings = context.ReadObjectList<VotingContainer>();
              }
        }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:13,代码来源:FetchVotingResponse.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);
       Config = context.ReadObject<RemoteConfig>();
       Groups = context.ReadObjectList<Group>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:10,代码来源:FetchConfigResponse.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);
       VotingId = context.ReadGuid();
       ShareParts = context.ReadObjectList<Signed<SharePart>>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:10,代码来源:AllShareParts.cs

示例10: 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);
       AuthorityCertificates = context.ReadObjectList<AuthorityCertificate>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:9,代码来源:FetchAuthorityCertificatesResponse.cs

示例11: 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);
       Material = context.ReadObject<VotingMaterial>();
       Authorities = context.ReadObjectList<Certificate>();
       AuthoritiesDone = context.ReadGuidList();
       Status = (VotingStatus)context.ReadInt32();
       EnvelopeCount = context.ReadInt32();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:13,代码来源:VotingContainer.cs

示例12: 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);
       Text = context.ReadMultiLanguageString();
       Description = context.ReadMultiLanguageString();
       Url = context.ReadMultiLanguageString();
       MaxVota = context.ReadInt32();
       this.options = context.ReadObjectList<Option>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:13,代码来源:Question.cs

示例13: 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);

              this.rootCertificateIds = context.ReadGuidList();

              this.certificates = new Dictionary<Guid,Certificate>();
              List<Certificate> certificates = context.ReadObjectList<Certificate>();
              certificates.ForEach(certificate => this.certificates.Add(certificate.Id, certificate));

              this.revocationLists = context.ReadObjectList<RevocationList>();
              this.signedRevocationLists = context.ReadObjectList<Signed<RevocationList>>();
        }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:17,代码来源:CertificateStorage.cs

示例14: 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);
       AuthorityIndex = context.ReadInt32();
       EncryptedShares = context.ReadObjectList<Encrypted<Share>>();
       VerificationValues = context.ReadObjectList<VerificationValue>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:11,代码来源:SharePart.cs

示例15: 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.ReadInt32();
       Authorities = context.ReadObjectList<Certificate>();
       Certificates = context.ReadObjectList<Certificate>();
       RevocationLists = context.ReadObjectList<Signed<RevocationList>>();
 }
开发者ID:dbrgn,项目名称:pi-vote,代码行数:12,代码来源:AuthorityList.cs


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