Пример #1
0
 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);
 }
Пример #2
0
          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);

             
        }