示例#1
0
        internal static ClaimReference FromContract(Contracts.Reference reference)
        {
            Debug.Assert(reference != null);
            var inst = new ClaimReference();

            inst.LoadFromContract(reference);
            return(inst);
        }
示例#2
0
 internal void LoadFromContract(Contracts.Reference reference)
 {
     Debug.Assert(reference != null);
     _Snaks.Clear();
     if (reference.Snaks != null)
     {
         _Snaks.AddRange(Claim.EnumWithOrder(reference.Snaks, reference.SnaksOrder).Select(Snak.FromContract));
     }
     Hash = reference.Hash;
 }