public delegate void SomeFunc();
public static event Action<float> SomeEvent;
public static void Main()
SomeFunc myFunction = WhatAmI;
Console.WriteLine(myFunction.GetType());
Console.WriteLine(SomeEvent.GetType());
public static void AndWhatAmI(float nonsense) {
Console.WriteLine(string.Format("I'm listening to an event that was raised, with the value {0}", nonsense));
public static void WhatAmI() {
Console.WriteLine("I'm a delegate\n");