예제 #1
0
 public static bool TryCreate(PropertyInfo property, out IFieldIO io)
 {
     if (IsNullable(property))
     {
         io = new NullableFieldIO(property, true);
         return true;
     }
     io = null;
     return false;
 }
예제 #2
0
 public void FieldType_ShouldBeBaseType()
 {
     var io = new NullableFieldIO(typeof(MessageWithNullableInt).GetProperty("Value"));
     Assert.AreEqual(typeof(int), io.FieldType);
 }