CmisSync.Lib.Config.ConfigMigration.ReplaceCaseSensitiveNotification C# (CSharp) Метод

ReplaceCaseSensitiveNotification() приватный статический Метод

Replaces True by true in the notification to make it possible to deserialize Xml Config to C# Objects
private static ReplaceCaseSensitiveNotification ( ) : void
Результат void
        private static void ReplaceCaseSensitiveNotification()
        {
            var fileContents = System.IO.File.ReadAllText(ConfigManager.CurrentConfigFile);
            if (fileContents.Contains("<notifications>True</notifications>"))
            {
                fileContents = fileContents.Replace("<notifications>True</notifications>", "<notifications>true</notifications>");
                System.IO.File.WriteAllText(ConfigManager.CurrentConfigFile, fileContents);
                System.Console.Out.WriteLine("Migrated old upper case notification to lower case");
            }
        }