AssemblyExtensions ClassDelta Engine Documentation
Additional methods for assembly related actions. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Extensions AssemblyExtensions

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

public static class AssemblyExtensions

The AssemblyExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetEntryAssemblyForProjectName
Public methodStatic memberGetTestNameOrProjectName
Public methodStatic memberIsAllowed(Assembly)
Public methodStatic memberIsAllowed(AssemblyName)
Public methodStatic memberIsEditorAssembly
Public methodStatic memberIsManagedAssembly
See http://geekswithblogs.net/rupreet/archive/2005/11/02/58873.aspx View code on GitHub
Public methodStatic memberIsMicrosoftAssembly
Public methodStatic memberIsPlatformAssembly
Top
Remarks

Tests: DeltaEngine.Tests.Extensions.AssemblyExtensionsTests
Examples

2 unit tests call DeltaEngine.Extensions.AssemblyExtensions
[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