FSO.Common.IniConfig.Save C# (CSharp) Method

Save() public method

public Save ( ) : void
return void
        public void Save()
        {
            try
            {
                using (var stream = new StreamWriter(File.Open(ActivePath, FileMode.Create, FileAccess.Write)))
                {
                    stream.WriteLine("# FreeSO Settings File. Properties are self explanatory.");
                    var props = this.GetType().GetProperties();
                    foreach (var prop in props)
                    {
                        if (prop.Name == "Default" || prop.Name == "DefaultValues") continue;
                        stream.WriteLine(prop.Name + "=" + prop.GetValue(this).ToString());
                    }
                }
            }
            catch (Exception) { }
        }