Пример #1
0
        public CompositeType GetDataUsingDataContract(CompositeType composite)
        {
            if (composite == null)
            {
                throw new ArgumentNullException("composite");
            }
            if (composite.BoolValue)
            {
                try
                {
                    composite.StringValue += "+1111++love misaki";
                }
                catch (Exception e)
                {

                    composite.StringValue = e.ToString();
                }

            }
            return composite;
            //if (composite == null)
            //{
            //    throw new ArgumentNullException("composite");
            //}
            //if (composite.BoolValue)
            //{
            //    composite.StringValue += "+++love misaki";
            //}
            //return composite;
        }
Пример #2
0
 public CompositeType GetDataUsingDataContract(CompositeType composite)
 {
     if (composite == null)
     {
         throw new ArgumentNullException("composite");
     }
     if (composite.BoolValue)
     {
         composite.StringValue += "Suffix";
     }
     return composite;
 }