Guest User

Untitled

a guest
May 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var types = from a in Assembly.GetEntryAssembly().GetReferencedAssemblies()
  2. from t in Assembly.Load( (AssemblyName) a ).GetTypes()
  3. where t.IsPublic
  4. orderby t.Name.Length descending
  5. select t;
  6. Console.WriteLine( types.Take( 1 ).Single().FullName );
  7. Console.ReadLine();
Add Comment
Please, Sign In to add comment