Csharp/CSharp Tutorial/Development/Evidence

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Evidence

using System;
using System.Reflection;
using System.Security.Policy;
using System.Collections;
class Class1
{
  static void Main()
  {
    Type ObjectType = Type.GetType("System.Object");
    Assembly ObjectAssembly = Assembly.GetAssembly(ObjectType);
    Evidence ObjectEvidence = ObjectAssembly.Evidence;
    IEnumerator EvidenceEnum = ObjectEvidence.GetEnumerator();
    while (EvidenceEnum.MoveNext())
      Console.WriteLine(EvidenceEnum.Current);
  }
}