private static string FormatFlags(EflagsEnum flags) { //return $"{Convert.ToString((uint) flags, 2)}:" + string.Join("|", flags.GetIndividualFlags()); return(String.Join("|", flags.GetIndividualFlags())); }
private static string FormatFlagsDiff(string regTitle, EflagsEnum flags, EflagsEnum oldFlags) { return(flags != oldFlags ? regTitle + "=" + String.Join("|", oldFlags.GetIndividualFlags()) + "->" + String.Join("|", flags.GetIndividualFlags()) : ""); }