I have a class that currently looks like this:
public Action<string> Callback { get; set; }
public void function(string, Action<string> callback =null)
{
if (callback != null) this.Callback = callback;
//do something
}
Now what I want is to take an optional parameter like:
public Action<optional, string> Callback { get; set; }
I tried:
public Action<int optional = 0, string> Callback { get; set; }
it does not work.
Is there any way to allow Action<...>
take one optional parameter?