Src/Black.Beard.ComponentModel/ComponentModel/TypeDiscovery.cs
/// <summary>
/// Return true if assembly is allready loaded
/// </summary>
/// <param name="name">assemblyName</param>
/// <param name="acceptAllversions">if false don't try to match the version</param>
/// <returns></returns>
Return true if assembly is allready loaded
Return true if assembly is allready loaded
public bool IsLoadedByAssemblyByName(AssemblyName name, bool acceptAllversions)
        {
            if (!_assemblyNames.TryGetValue(name.Name, out var dic))
                return false;
            if (acceptAllversions)
                return true;
            return dic.Contains(name.Version.ToString());
        }
public bool IsLoadedByAssemblyByName ( AssemblyName name , bool acceptAllversions ) { if ( ! _assemblyNames . TryGetValue ( name . Name , out var dic ) ) return false ; if ( acceptAllversions ) return true ; return dic . Contains ( name . Version . ToString ( ) ) ; }
Return true if assembly is allready loaded
Return true if assembly is allready loaded
None
name
AssemblyName
None
acceptAllversions
bool
if false don't try to match the version
if false don ' t try to match the version