Microsoft.Cci.MetadataHostEnvironment.FindAssembly C# (CSharp) Method

FindAssembly() public method

Finds the assembly that matches the given identifier among the already loaded set of assemblies, or a dummy assembly if no matching assembly can be found.
public FindAssembly ( Microsoft.Cci.AssemblyIdentity assemblyIdentity ) : IAssembly
assemblyIdentity Microsoft.Cci.AssemblyIdentity
return IAssembly
    public IAssembly FindAssembly(AssemblyIdentity assemblyIdentity) {
      IUnit/*?*/ unit;
      lock (GlobalLock.LockingObject) {
        this.unitCache.TryGetValue(assemblyIdentity, out unit);
      }
      IAssembly/*?*/ result = unit as IAssembly;
      if (result != null)
        return result;
      return Dummy.Assembly;
    }