Update documentation for Assembly implementations
This commit is contained in:
Родитель
a426597e4b
Коммит
a9777d195e
|
@ -207,7 +207,7 @@ namespace SystemInterface.Reflection
|
|||
/// <param name="assemblyFile">The name or path of the file that contains the manifest of the assembly.</param>
|
||||
/// <returns>The loaded assembly. </returns>
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[Obsolete("Use IAssemblyFactory.LoadFrom")]
|
||||
[Obsolete("This interface for static method Assembly.LoadFrom(string) was moved to the IAssemblyFactory.LoadFrom(string).")]
|
||||
IAssembly LoadFrom(string assemblyFile);
|
||||
|
||||
/// <summary>
|
||||
|
@ -217,10 +217,20 @@ namespace SystemInterface.Reflection
|
|||
/// <returns>The loaded assembl.</returns>
|
||||
[System.Security.SecuritySafeCritical]
|
||||
[MethodImplAttribute(MethodImplOptions.NoInlining)]
|
||||
[Obsolete("Use IAssemblyFactory.Load")]
|
||||
[Obsolete("This interface for static method Assembly.LoadFrom(string) was moved to the IAssemblyFactory.LoadFrom(string).")]
|
||||
IAssembly Load(string assemblyString);
|
||||
|
||||
/// <summary>
|
||||
/// Returns the names of all the resources in this assembly.
|
||||
/// </summary>
|
||||
/// <returns>An array that contains the names of all the resources.</returns>
|
||||
string[] GetManifestResourceNames();
|
||||
|
||||
/// <summary>
|
||||
/// Loads the specified manifest resource from this assembly.
|
||||
/// </summary>
|
||||
/// <param name="name">The case-sensitive name of the manifest resource being requested.</param>
|
||||
/// <returns>The manifest resource; or null if no resources were specified during compilation or if the resource is not visible to the caller.</returns>
|
||||
IStream GetManifestResourceStream(string name);
|
||||
|
||||
/*
|
||||
|
@ -284,4 +294,4 @@ namespace SystemInterface.Reflection
|
|||
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
using System.Configuration.Assemblies;
|
||||
using System;
|
||||
using System.Configuration.Assemblies;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Permissions;
|
||||
using System.Security.Policy;
|
||||
|
||||
namespace SystemInterface.Reflection
|
||||
{
|
||||
/// <summary>
|
||||
/// This interfaces includes static methods from the <see cref="System.Reflection.Assembly"/> type.
|
||||
/// </summary>
|
||||
public interface IAssemblyFactory
|
||||
{
|
||||
IAssembly Load(byte[] rawAssembly);
|
||||
|
@ -54,6 +58,5 @@ namespace SystemInterface.Reflection
|
|||
/// <returns>The loaded assembly. </returns>
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
IAssembly LoadFrom(string assemblyFile);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,9 @@ using SystemInterface.Reflection;
|
|||
|
||||
namespace SystemWrapper.Reflection
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapper implementation for static methods from the <see cref="System.Reflection.Assembly"/> type.
|
||||
/// </summary>
|
||||
public class AssemblyFactory : IAssemblyFactory
|
||||
{
|
||||
public IAssembly Load(string assemblyString)
|
||||
|
@ -83,4 +86,4 @@ namespace SystemWrapper.Reflection
|
|||
return new AssemblyWrap(Assembly.ReflectionOnlyLoadFrom(assemb));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче