Smeedee.Model.SmeedeeApp.ModelFromAttributes C# (CSharp) Method

ModelFromAttributes() private static method

private static ModelFromAttributes ( WidgetAttribute attr, Type type ) : WidgetModel
attr WidgetAttribute
type System.Type
return WidgetModel
        private static WidgetModel ModelFromAttributes(WidgetAttribute attr, Type type)
        {
            return new WidgetModel(attr.Name, attr.StaticDescription, type) {SettingsType = attr.SettingsType};
        }
    }