Exemple #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);
 }
		public static bool TryCreate(PropertyInfo property, out IFieldIO io)
		{
			if (IsNullable(property))
			{
				io = new NullableFieldIO(property, true);
				return true;
			}
			io = null;
			return false;
		}
Exemple #3
0
        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));
        }