Changes

Jump to navigation Jump to search
→‎Inject assets: fix example
Line 494: Line 494:  
     /// <summary>Load a matched asset.</summary>
 
     /// <summary>Load a matched asset.</summary>
 
     /// <param name="asset">Basic metadata about the asset being loaded.</param>
 
     /// <param name="asset">Basic metadata about the asset being loaded.</param>
     public void Load<T>(IAssetInfo asset)
+
     public T Load<T>(IAssetInfo asset)
 
     {
 
     {
 
         return (T)(object)new Dictionary<string, string> // (T)(object) is a trick to cast anything to T if we know it's compatible
 
         return (T)(object)new Dictionary<string, string> // (T)(object) is a trick to cast anything to T if we know it's compatible
translators
8,446

edits

Navigation menu