Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-anon-37.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e5d2248ae32f4cbe7bc77009e228d94d7a368adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;

public class DelegateInit {
    public delegate void FooDelegate();

    public static readonly FooDelegate _print =
        delegate() {
            Console.WriteLine("delegate!");
        };

    public static void Main(string[] args) {
        _print();
    }
}