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 void add(string name, object resource, Type type)
        {
            Dictionary<string, object> typedResources;
            if (!_resources.TryGetValue(type, out typedResources))
            {
                typedResources = new Dictionary<string, object>();
                _resources.Add(type, typedResources);
            }
            typedResources[name] = resource;
        }
public void add ( string name , object resource , Type type ) { Dictionary < string , object > typedResources ; if ( ! _resources . TryGetValue ( type , out typedResources ) ) { typedResources = new Dictionary < string , object > ( ) ; _resources . Add ( type , typedResources ) ; } typedResources [ name ] = resource ; }
adds the typed resource to this skin
adds the typed resource to this skin
name
string
None
resource
object
None
type
Type
typeparam
The 1st type parameter.
The 1st type parameter .