ARKBreedingStats.Values.saveJSON C# (CSharp) Méthode

saveJSON() public méthode

public saveJSON ( ) : void
Résultat void
        public void saveJSON()
        {
            // to create minified json of current values
            DataContractJsonSerializer writer = new DataContractJsonSerializer(typeof(Values));
            try
            {
                System.IO.FileStream file = System.IO.File.Create("values.json");
                writer.WriteObject(file, _V);
                file.Close();
            }
            catch (Exception e)
            {
                MessageBox.Show("Error during serialization.\nErrormessage:\n\n" + e.Message, "Serialization-Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }