using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronIntel.Contractor.MapView; using IronIntel.Contractor.Users; using IronIntel.Contractor.Machines; using IronIntel.Contractor; using FI.FIC.Extention; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string fn = "IronIntel.Contractor.FICExtDataTable.AssetTripsDataTable,iicontractorbl"; Type intftype = typeof(IExtDataTable); Type tp = Type.GetType(fn); if (!tp.IsAbstract && tp.IsClass &&tp.IsPublic&& tp.GetInterface(intftype.FullName) != null) { } IExtDataTable ext = Activator.CreateInstance(tp) as IExtDataTable; Console.WriteLine(ext.ID); Guid gd = new Guid("10000000-0000-0000-0000-100000000001"); Console.ReadLine(); } } }