コード例 #1
0
        private void ConvertThroughProto(ExerciseCommand source)
        {
            Com.Daml.Ledger.Api.V1.ExerciseCommand protoValue = source.ToProto();
            var target = ExerciseCommand.FromProto(protoValue);

            Assert.True(source == target);
        }
コード例 #2
0
 public static ExerciseCommand FromProto(Com.Daml.Ledger.Api.V1.ExerciseCommand command)
 {
     return(new ExerciseCommand(Identifier.FromProto(command.TemplateId), command.ContractId, command.Choice, Value.FromProto(command.ChoiceArgument)));
 }