using System;
using System.Reflection;
using System.Collections;
class MainClass
{
public static void Main()
{
AppDomain domain = AppDomain.CreateDomain("Test");
ArrayList list = new ArrayList();
list.Add("d");
list.Add("c");
list.Add("f");
domain.SetData("Pets", list);
foreach (string s in (ArrayList)domain.GetData("Pets"))
{
Console.WriteLine(" - " + s);
}
}
}
|