Ejemplo n.º 1
0
 private static void MakeSureContentLoaderHasBeenCreated()
 {
     if (Type == null)
     {
         throw new ContentLoaderUseWasNotCalled();
     }
     if (resolver == null)
     {
         resolver = new ContentLoaderResolver();
     }
     if (current == null)
     {
         current = resolver.ResolveContentLoader(Type);
     }
 }
Ejemplo n.º 2
0
 public virtual void Dispose()
 {
     current  = null;
     resolver = null;
 }