I\'m a very new to C#. Just playing around with it. Not for a real purpose.
void makeOutput( int _param)
{
Console.WriteLine( _param.ToString());
}
//..
Yes.
It's called a delegate.
Delegates are (more-or-less) normal types; you can pass them to functions just like any other type.
void makeOutput(Func param) {
Console.WriteLine(param());
}
makeOutput(delegate { return 4; });
makeOutput(() => { return 4; });
makeOutput(() => 4);
Your edited question does not make sense.
C# is type-safe.
If the method doesn't want a function as a parameter, you cannot give it a method as a parameter.