Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# settings file

// Write Setting
// The scope of the settings file must be set to user in order for it not to be read-only
SettingsFile.Default.MySetting = "A setting";
SettingsFile.Default.Save(); // In order to save all the changes

// Read Setting
string myvalue = SettingsFile.Default.MySetting; // retrieve a setting of type string
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# for statement 
Csharp :: NameValueCollection 
Csharp :: delete the particular line in files in c# 
Csharp :: or c# 
Csharp :: c# isdigit mehod 
Csharp :: c# print decimal with zero at the end 
Csharp :: difference between boxing and unboxing in c# 
Csharp :: if statement c# 
Csharp :: mfind how many digits a number has c# 
Csharp :: get processor id c# web application 
Csharp :: how to deserialize string array in c# 
Csharp :: minimize maximize restore wpf buttons 
Csharp :: asp.net 5 iis HTTP Error 500.19 - Internal Server Error 
Csharp :: C# async to sync 
Csharp :: check property type of collection c# 
Csharp :: how to remove all whitespace from a string in c# 
Csharp :: change size of a unity object 
Csharp :: c# picturebox transparente 
Csharp :: access object property C# 
Csharp :: stringbuilder to string c# 
Csharp :: array reduce c# 
Csharp :: c# code to read txt file line by line and split 
Csharp :: c# loop xml 
Csharp :: unity vector3 to array 
Csharp :: Plugging a Third-Party IoC Container (e.g. AutoFac) into .NET Core 6 
Csharp :: unity model ripper 
Csharp :: unity public static variable 
Csharp :: remove last instance of string c# 
Csharp :: enable cors asp.net mvc 
Csharp :: change line color in c# 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =