Esempio n. 1
0
 internal static bool IsLoaded(UncommonAssembly assemblyEnum)
 {
     // this method is typically called by WPF code on a UI thread.
     // Although assemblies can load on any thread, there's no need to lock.
     // If the object of interest came from the given assembly, the
     // AssemblyLoad event has already been raised and the bit has already
     // been set before the caller calls IsLoaded.
     return(_records[(int)assemblyEnum].IsLoaded);
 }
Esempio n. 2
0
 internal static bool IsLoaded(UncommonAssembly assemblyEnum)
 {
     // this method is typically called by WPF code on a UI thread. 
     // Although assemblies can load on any thread, there's no need to lock.
     // If the object of interest came from the given assembly, the 
     // AssemblyLoad event has already been raised and the bit has already 
     // been set before the caller calls IsLoaded.
     return _records[(int)assemblyEnum].IsLoaded; 
 }