Show / Hide Table of Contents

Class AssemblyExtensions

Extension methods for System.Reflection.Assembly.

Inheritance
System.Object
AssemblyExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.GNS.Utilities.Extensions
Assembly: Gns.Utilities.dll
Syntax
public static class AssemblyExtensions

Methods

View Source

GetTypes<T>(Assembly, Func<Type, Boolean>)

Get exported types descended from the given type T, optionally matching the given predicate.

Declaration
public static IEnumerable<Type> GetTypes<T>(this Assembly assembly, Func<Type, bool> predicate = null)
Parameters
Type Name Description
System.Reflection.Assembly assembly

The assembly to search.

System.Func<System.Type, System.Boolean> predicate

The predicate to filter results.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Type>

An enumeration of types.

Type Parameters
Name Description
T

The base type.

  • View Source
In This Article
Back to top Generated by DocFX