public static bool TryCreate(PropertyInfo property, out IFieldIO io) { if (IsNullable(property)) { io = new NullableFieldIO(property, true); return(true); } io = null; return(false); }
public static bool TryCreate(PropertyInfo property, out IFieldIO io) { if (IsNullable(property)) { io = new NullableFieldIO(property, true); return true; } io = null; return false; }
private static IFieldIO CreateFieldIO(PropertyInfo property) { IFieldIO fieldIO; if (RepeatedFieldIO.TryCreate(property, out fieldIO) || NullableFieldIO.TryCreate(property, out fieldIO)) { return(fieldIO); } return(new FieldIO(property)); }