ARKBreedingStats.Values.saveJSON C# (CSharp) 메소드

saveJSON() 공개 메소드

public saveJSON ( ) : void
리턴 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);
            }
        }