public void DisplayConstructorProperties(System.Reflection.ConstructorInfo constructorInfo) { ThisConstructor = constructorInfo;//store the constructor information Label2.Text = ThisConstructor.Name;//display constructor name //calling convention output to textbox Label4.Text = "0x" + ThisConstructor.CallingConvention.ToString("x") + " = " + ThisConstructor.CallingConvention.ToString(); //standard attributes to textbox Label6.Text = "0x" + ThisConstructor.Attributes.ToString("x") + " = " + ThisConstructor.Attributes.ToString(); //constructor parameters foreach (System.Reflection.ParameterInfo parm in ThisConstructor.GetParameters()) { ListBox1.Items.Add(parm); } //display custom attributes foreach (object attr in ThisConstructor.GetCustomAttributes(true)) { ListBox2.Items.Add(attr); } }