MOTMaster.MMDataIOHelper.storeDictionary C# (CSharp) Method

storeDictionary() private method

private storeDictionary ( String dataStoreFilePath, object>.Dictionary dict ) : void
dataStoreFilePath String
dict object>.Dictionary
return void
        private void storeDictionary(String dataStoreFilePath, Dictionary<string, object> dict)
        {
            if (dict != null)
            {
                TextWriter output = File.CreateText(dataStoreFilePath);
                foreach (KeyValuePair<string, object> pair in dict)
                {
                    output.Write(pair.Key);
                    output.Write('\t');
                    output.Write(pair.Value.ToString());
                    output.Write('\t');
                    output.WriteLine(pair.Value.GetType());
                }
                output.Close();
            }
        }