AssemblyExtensions IsManagedAssembly Method Delta Engine Documentation
See http://geekswithblogs.net/rupreet/archive/2005/11/02/58873.aspx View code on GitHub

Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static bool IsManagedAssembly(
	string fileName
)

Return Value

Type: Boolean
Remarks

Tests: DeltaEngine.Tests.Extensions.AssemblyExtensionsTests
Examples

2 unit tests call DeltaEngine.Extensions.AssemblyExtensions.IsManagedAssembly(System.String)
[Test]
public void CheckIfManagedAssembly()
{
    string managedAssemblyFile = Path.Combine(Directory.GetCurrentDirectory(), "DeltaEngine.dll");
    Assert.IsTrue(AssemblyExtensions.IsManagedAssembly(managedAssemblyFile));
}
[Test]
public void CheckIfNotManagedAssembly()
{
    string unmanagedAssemblyFile =
        Path.Combine(Environment.ExpandEnvironmentVariables("%WinDir%"), "System32", "user32.dll");
    Assert.IsFalse(AssemblyExtensions.IsManagedAssembly(unmanagedAssemblyFile));
}
See Also