CSharp examples for System.Reflection:Type
Find Type By Name
using System.Reflection; using System.Linq; using System.Collections.Generic; using System;/*from w w w . j a v a2 s. co m*/ public class Main{ public static Type FindTypeByName(this Assembly assembly, string name) { return assembly.GetTypes().SingleOrDefault(c => c.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)); } }