Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to save a c# dictionary

File.WriteAllText("SomeFile.Txt", new JavaScriptSerializer().Serialize(dictionary));
Comment

how to save a c# dictionary

var dictionary = new JavaScriptSerializer()
    .Deserialize<Dictionary<string, string>>(File.ReadAllText("SomeFile.txt"));
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity check if a animator parameter trigger is activated 
Csharp :: c# compile into an exe 
Csharp :: how to deactivate objects through scripts in unity 
Csharp :: c# hello world 
Csharp :: c# combine list of bool 
Csharp :: 2d game art 
Csharp :: replace elements with greatest element on right side 
Csharp :: making a gui that can only be visible by owner roblox 
Csharp :: VLC .net 
Csharp :: c# split on multiple characters 
Csharp :: c# create a zip files 
Csharp :: how to deselect a button through code unity 
Csharp :: unity new input system keydown 
Csharp :: crop bitmap image c# 
Csharp :: jump in unity 
Csharp :: c# string to variable name 
Csharp :: c# append text to file 
Csharp :: c# join string array 
Csharp :: razor confirm password validation 
Csharp :: c# unity detect any keyboard input but not mouse input 
Csharp :: c# initialize empty array 
Csharp :: c# list string return concatenate 
Csharp :: c# console wait for input 
Csharp :: gameobject in unity c# 
Csharp :: c# list slice 
Csharp :: wpf c# select folder path 
Csharp :: prevent asp button from postback 
Csharp :: how to check datagridview cell is null or empty 
Csharp :: winforms C# code cross thread operation is not valid 
Csharp :: how to look around with mouse in unity 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =