예제 #1
0
 public static DateTime?getValueNullable(ref ProtoDateTime wrapper)
 {
     if (wrapper == null)
     {
         return(null);
     }
     return(wrapper.Value);
 }
예제 #2
0
 public static DateTime getValue(ref ProtoDateTime wrapper)
 {
     if (wrapper == null)
     {
         wrapper = new ProtoDateTime();
     }
     return(wrapper.Value);
 }
예제 #3
0
 public static void setValue(out ProtoDateTime wrapper, DateTime?newVal)
 {
     wrapper = newVal.HasValue ? new ProtoDateTime {
         Value = newVal.Value
     } : null;
 }
예제 #4
0
 public static void setValue(out ProtoDateTime wrapper, DateTime value)
 {
     wrapper = new ProtoDateTime {
         Value = value
     };
 }