示例#1
0
    public static void Main()
    {
        foo("normal", test);
        FOO f = new FOO(foo);

        f("delegate", test);
    }
示例#2
0
    public static void Main(string[] args)
    {
        var foo = new FOO();
        var x   = new XmlSerializer(typeof(FOO));

        using (var memoryStream = new MemoryStream())
        {
            using (var writer = new StreamWriter(memoryStream))
            {
                x.Serialize(writer, foo);
            }
        }
    }
示例#3
0
文件: test-237.cs 项目: nobled/mono
	public static void Main()
	{
		foo("normal", test);
		FOO f = new FOO(foo);
		f("delegate", test);
	}