Example #1
0
        public override Com.DigitalAsset.Ledger.Api.V1.Value ToProto()
        {
            var list = new Com.DigitalAsset.Ledger.Api.V1.List();

            list.Elements.AddRange(from v in Values select v.ToProto());
            return(new Com.DigitalAsset.Ledger.Api.V1.Value {
                List = list
            });
        }
Example #2
0
 public static DamlList FromProto(Com.DigitalAsset.Ledger.Api.V1.List list) => new DamlList(new List <Value>(from v in list.Elements select Value.FromProto(v)));