public PropertyInfo[] GetProperties(GuitarSpec searchSpec) { Type t = searchSpec.GetType(); PropertyInfo[] pis = t.GetProperties(); return(pis); }
public PropertyInfo[] GetProperties(GuitarSpec searchSpec) { Type t = searchSpec.GetType(); PropertyInfo[] pis = t.GetProperties(); //foreach (PropertyInfo pi in pis) //{ // object value1 = pi.GetValue(t, null); // string name1 = pi.Name; //} if (pis == null) { Console.WriteLine("Failed to get Properties!"); return(null); } return(pis); }