public void Add(IPermission permission) { if (Permissions == null) { Permissions = new HashSet<IPermission>(); } Permissions.Add(permission); }