14 lines
279 B
C#
14 lines
279 B
C#
|
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();
|
||
|
}
|
||
|
}
|