DatePickerOfItemsControl、TextBoxOfItemsControl、ComboBoxOfItemsControl 是类,如何像传递变量一样将这些类传递给函数
用于将这些类或类型保存为变量并在需要时使用它来创建实例的函数
ifactory.AddControl(DatePickerOfItemsControl);
ifactory.AddControl(TextBoxOfItemsControl);
//ifactory.AddControl(textbox2);
ifactory.AddControl(ComboBoxOfItemsControl);
ifactory.AddControl(RadioBoxOfItemsControl);
public void AddControl(Object c)
{
datepickerclass = DatePickerOfItemsControl;
public void Apply()
{
datepickerclass datepicker = new datepickerclass();