// Get all types in the currently executing assembly Type[] types = Assembly.GetExecutingAssembly().GetTypes(); // Find all classes that implement the IDisposable interface IEnumerableIn this example, the Where method is used to find all the classes in the current assembly that implement the IDisposable interface. This method is part of the System.Linq namespace, so the package library would most likely be System.Linq.disposableTypes = types.Where(t => t.IsClass && typeof(IDisposable).IsAssignableFrom(t));