private static int ShowProperties(string[] args) { BaseWtDevice parameter = new HBM.WT.API.WTX.WtxJet(_jetConnection); Type type = parameter.GetType(); PropertyInfo[] properties = type.GetProperties(); foreach (PropertyInfo prop in properties) { Console.WriteLine(prop.ToString()); } return(0); }
private static int ShowProperties(string[] args) { BaseWtDevice parameter = new HBM.WT.API.WTX.WtxJet(_sConnection); //HBM.WT.API.COMMON.BaseWTDevice parameter = new Hbm.Wt.WTXInterface.WTX120_Jet.WTX120_Jet(s_Connection, 100); // Before : //Hbm.Wt.WTXInterface.DeviceAbstract parameter = new Hbm.Wt.WTXInterface.WTX120_Jet.WTX120_Jet(s_Connection,100); Type type = parameter.GetType(); PropertyInfo[] properties = type.GetProperties(); foreach (PropertyInfo prop in properties) { Console.WriteLine(prop.ToString()); } return(0); }