Skip to content

Instantly share code, notes, and snippets.

@thomasweng15
Created January 14, 2015 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasweng15/681564d548b5a34445c4 to your computer and use it in GitHub Desktop.
Save thomasweng15/681564d548b5a34445c4 to your computer and use it in GitHub Desktop.
Saving a properties string in a Visual Studio project
String toSave = "";
for (int i = 0; i < numObjects; i++)
{
String coords = this.objColorCoords[i].row + "," + this.objColorCoords[i].col;
toSave += coords + ";";
}
toSave = toSave.Substring(0, toSave.Length - 1);
Properties.Settings.Default.ObjectThresholdValues = toSave;
Properties.Settings.Default.Save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment