public string ToRegString() { int filter = 0; if (FilterLogon) filter |= 0x1; if (FilterUnlock) filter |= 0x2; if (FilterChangePass) filter |= 0x4; if (FilterCredUI) filter |= 0x8; return string.Format("{{{0}}}\t{1}", Uuid.ToString(), filter); }