GetHostEnumerator and GetAssemblyEnumerator : Evidence : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Evidence »

 

GetHostEnumerator and GetAssemblyEnumerator








    


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());
            Console.WriteLine("Press Enter to see next evidence.");
            Console.ReadLine();
        }
        x = e.GetAssemblyEnumerator();
        Console.WriteLine("ASSEMBLY EVIDENCE COLLECTION:");
        while (x.MoveNext()) {
            Console.WriteLine(x.Current.ToString());
            Console.WriteLine("Press Enter to see next evidence.");
            Console.ReadLine();
        }

    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Evidence