public static DateTime?getValueNullable(ref ProtoDateTime wrapper) { if (wrapper == null) { return(null); } return(wrapper.Value); }
public static DateTime getValue(ref ProtoDateTime wrapper) { if (wrapper == null) { wrapper = new ProtoDateTime(); } return(wrapper.Value); }
public static void setValue(out ProtoDateTime wrapper, DateTime?newVal) { wrapper = newVal.HasValue ? new ProtoDateTime { Value = newVal.Value } : null; }
public static void setValue(out ProtoDateTime wrapper, DateTime value) { wrapper = new ProtoDateTime { Value = value }; }