public T WithWidget(IWidgetType widgetType) { if (widgetType == null) { throw new ArgumentNullException(nameof(widgetType)); } return(WithWidget(widgetType.WidgetName)); }
public void Dispose() { widgetType = null; }
public override void Build <T>(T resultClass) { widgetType = (WidgetType)resultClass.GetType().GetMethod("Convert").Invoke(resultClass, null); }