Example #1
0
        public CompositeType GetSampleJson()
        {
            CompositeType ct = new CompositeType();
            ct.BoolValue = true;
            ct.StringValue = "Hello World";
            return ct;

        }
Example #2
0
 public CompositeType GetDataUsingDataContract(CompositeType composite, CompositeType composite2)
 {
     if (composite.BoolValue)
     {
         composite.StringValue += "Suffix";
     }
     return composite;
 }
Example #3
0
        public CompositeType GetOutParams(out CompositeType c1, out CompositeType c2)
        {
            c1 = new CompositeType();
            c1.BoolValue = true;
            c1.StringValue = "aaa";

            c2 = new CompositeType();
            c2.BoolValue = true;
            c2.StringValue = "bbb";

            return c2;
        }