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