Get classes of interface c#
Get classes of interface c# var inte = typeof(iController); var x = Assembly.GetExecutingAssembly() .GetTypes() .Where(type => inte.IsAssignableFrom(type)) .Where(type => !type.IsAbstract && !type.IsGenericType ) .Where(type => type.Name.ToLower() == name.ToLower()) .Select(o => Activator.CreateInstance(o)).FirstOrDefault();