My Evidence Viewer : Evidence « Assembly « C# / CSharp Tutorial






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

  class Program
  {
    static void Main(string[] args)
    {
      Assembly asm = Assembly.LoadFrom("path to assembly");
      DisplayAsmEvidence(asm);
    }
    private static void DisplayAsmEvidence(Assembly asm)
    {
      Evidence e = asm.Evidence;
      IEnumerator itfEnum = e.GetHostEnumerator();
      while (itfEnum.MoveNext())
      {
        Console.WriteLine(itfEnum.Current);
      }
    }
  }








12.8.Evidence
12.8.1.My Evidence Viewer