Beispiel #1
0
 public DataObject2 With(ArgOpt <decimal> price = default(ArgOpt <decimal>), ArgOpt <string> priceType = default(ArgOpt <string>))
 {
     return(new DataObject2
     {
         Price = price.OrDefault(Price),
         PriceType = priceType.OrDefault(PriceType)
     });
 }
Beispiel #2
0
 public DataObject With(ArgOpt <int> id = default(ArgOpt <int>), ArgOpt <string> value = default(ArgOpt <string>), ArgOpt <DataObject2> obj = default(ArgOpt <DataObject2>))
 {
     return(new DataObject
     {
         Id = id.OrDefault(Id),
         Value = value.OrDefault(Value),
         Object = obj.OrDefault(Object)
     });
 }