Ejemplo n.º 1
0
 public static void FileCodeGroupCallMethods()
 {
     Policy.FileCodeGroup fcg = new Policy.FileCodeGroup(new Policy.GacMembershipCondition(), new FileIOPermissionAccess());
     Policy.CodeGroup cg = fcg.Copy();
     bool equals = fcg.Equals(new object());
     int hash = fcg.GetHashCode();
     Policy.PolicyStatement ps = fcg.Resolve(new Policy.Evidence());
     cg = fcg.ResolveMatchingCodeGroups(new Policy.Evidence());
 }
Ejemplo n.º 2
0
        public static void FileCodeGroupCallMethods()
        {
            Policy.FileCodeGroup fcg = new Policy.FileCodeGroup(new Policy.GacMembershipCondition(), new FileIOPermissionAccess());
            Policy.CodeGroup     cg  = fcg.Copy();
            bool equals = fcg.Equals(new object());
            int  hash   = fcg.GetHashCode();

            Policy.PolicyStatement ps = fcg.Resolve(new Policy.Evidence());
            cg = fcg.ResolveMatchingCodeGroups(new Policy.Evidence());
        }