using System;
using System.Security.Permissions;
class MainClass
{
publicstaticvoid MyMethod()
{
PrincipalPermission perm1 = new PrincipalPermission(null, @"MACHINE\Managers");
PrincipalPermission perm2 = new PrincipalPermission(null, @"MACHINE\Developers");
// Make the demand.
perm1.Union(perm2).Demand();
}
}