A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Use a static field in a separate class so the array instance lives for the lifetime of the AppDomain.
public static class AppData
{
// Persistent string array, accessible from anywhere in the app
public static string[] Values = new string[10];
}
Usage:
// Read
string first = AppData.Values[0];
// Write
AppData.Values[0] = "Hello";
If the array size should not change, keep it as above. If the number of elements may change over time, consider using a List<string> instead of a fixed-size array.
References: