Src/Black.Beard.ComponentModel/ComponentModel/TypeDiscovery.cs
/// <summary>
/// Get assembly by assembly name. load this if not yet loaded.
/// </summary>
/// <param name="assemblyName">name of the assembly</param>
/// <returns></returns>
Get assembly by assembly name. load this if not yet loaded.
Get assembly by assembly name . load this if not yet loaded .
public Assembly AddAssemblyname(AssemblyName assemblyName, bool acceptAllVersion)
        {
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
            try
            {
                if (!IsLoadedByAssemblyByName(assemblyName, acceptAllVersion))
                    return AssemblyLoad(assemblyName);
                return GetAssembly(assemblyName);
            }
            finally
            {
                AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve;
            }
        }
public Assembly AddAssemblyname ( AssemblyName assemblyName , bool acceptAllVersion ) { AppDomain . CurrentDomain . AssemblyResolve += CurrentDomain_AssemblyResolve ; try { if ( ! IsLoadedByAssemblyByName ( assemblyName , acceptAllVersion ) ) return AssemblyLoad ( assemblyName ) ; return GetAssembly ( assemblyName ) ; } finally { AppDomain . CurrentDomain . AssemblyResolve -= CurrentDomain_AssemblyResolve ; } }
Get assembly by assembly name.
Get assembly by assembly name .
None
assemblyName
AssemblyName
name of the assembly
name of the assembly
acceptAllVersion
bool