Nez.Portable/UI/Skin.cs
/// <summary>
/// adds the typed resource to this skin
/// </summary>
/// <param name="name">Name.</param>
/// <param name="resource">Resource.</param>
/// <typeparam name="T">The 1st type parameter.</typeparam>
adds the typed resource to this skin
adds the typed resource to this skin
public T add<T>(string name, T resource)
        {
            Dictionary<string, object> typedResources;
            if (!_resources.TryGetValue(typeof(T), out typedResources))
            {
                typedResources = new Dictionary<string, object>();
                _resources.Add(typeof(T), typedResources);
            }
            typedResources[name] = resource;
            return resource;
        }
public T add < T > ( string name , T resource ) { Dictionary < string , object > typedResources ; if ( ! _resources . TryGetValue ( typeof ( T ) , out typedResources ) ) { typedResources = new Dictionary < string , object > ( ) ; _resources . Add ( typeof ( T ) , typedResources ) ; } typedResources [ name ] = resource ; return resource ; }
adds the typed resource to this skin
adds the typed resource to this skin
name
string
None
resource
T
None
typeparam
The 1st type parameter.
The 1st type parameter .