public static TResult Get <TResult>(this ViewDataDictionary viewData, ViewDataType viewDataType) where TResult : class { var result = viewData[viewData.ToString()] as TResult; return(result); }
public Property(string _viewName = "None", ViewDataType _viewType = ViewDataType.TextInput, string _luaName = "None", LuaDataType _luaDataType = LuaDataType.Boolen, string defaultValue = "None", PropertyType type = PropertyType.Common) { ViewName = _viewName; ViewType = _viewType; LuaName = _luaName; LuaDataType = _luaDataType; propValue = defaultValue; PropType = type; enumDictionary = new Dictionary <string, string>(); }
public static void Add(this ViewDataDictionary viewData, ViewDataType viewDataType, object value) { viewData.Add(viewDataType.ToString(), value); }
public PropertyInfo[] GetViewDataTypeProperties() { return(ViewDataType.GetProperties()); }