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