Csharp/CSharp Tutorial/Development/Evidence
Версия от 15:31, 26 мая 2010; (обсуждение)
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);
}
}