public static bool IsWriteable(PropertyInfo pi) { object[] attributes = pi.GetCustomAttributes(typeof(WriteAttribute), false); if (attributes.Length == 1) { WriteAttribute write = (WriteAttribute)attributes[0]; return(write.Write); } return(true); }
public static bool IsWriteable(PropertyInfo pi) { object[] attributes = pi.GetCustomAttributes(typeof(WriteAttribute), false); if (attributes.Length == 1) { { WriteAttribute write = (WriteAttribute)attributes[0]; return(write.Write); } } return(true); }