Evidence.GetHostEnumerator() : Evidence « System.Security.Policy « C# / C Sharp by API






Evidence.GetHostEnumerator()

 

using System;
using System.Reflection;
using System.Collections;
using System.Security.Policy;

public class MainClass {
    public static void Main(string[] args) {
        Assembly a = Assembly.LoadFrom(args[0]);
        Evidence e = a.Evidence;

        IEnumerator x = e.GetHostEnumerator();
        Console.WriteLine("HOST EVIDENCE COLLECTION:");
        while (x.MoveNext()) {
            Console.WriteLine(x.Current.ToString());
        }
    }
}

   
  








Related examples in the same category

1.ISupportInitialize.BeginInit