// (c) 2006 Richard Grimes // www.grimes.demon.co.uk using System; using System.Collections; using System.Reflection; using System.IO; [assembly: AssemblyKeyFile("lib.snk")] public class LibraryCode { public static string GetData(string str) { Assembly a = Assembly.GetExecutingAssembly(); Console.WriteLine("Host evidence:"); IEnumerator e = a.Evidence.GetHostEnumerator(); while (e.MoveNext()) { Console.WriteLine(e.Current.ToString()); } Console.WriteLine("Assembly evidence:"); e = a.Evidence.GetAssemblyEnumerator(); while (e.MoveNext()) { Console.WriteLine(e.Current.ToString()); } return null; } }