Mega Code Archive

 
Categories / C# / Reflection
 

Get Writable Properties

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace Yamma.Util {     public static class ReflectionHelper     {         public static  PropertyInfo[] GetWritableProperties<T>()         {             Type type = typeof(T);            return type.GetProperties(BindingFlags.Public | BindingFlags.Instance);         }         public static MethodInfo[] GetMethods<T>()         {             Type type = typeof(T);             return type.GetMethods();         }     } }