Assigns the specified value to the specified application domain property.
using System; using System.Reflection; class ADGetData { public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.SetData("MyKey", "Example value"); Console.WriteLine("MyKey is: " + currentDomain.GetData("MyKey")); Console.WriteLine(currentDomain.GetData("LOADER_OPTIMIZATION")); } }