New to C# and trying to figure out how to do a call back. (if this is indeed a callback)
I have a number of calls in the format ..
connector.Subscribe(data1, data2, (element, value) =>
{
Log($"{element.Name}: {value}");
});
and I would like to have them all use the same function instead of adding the code to each For example
public void somefunction(element, value)
{
Log($"{element.Name}: {value}");
}
connector.Subscribe(data1, data2, somefunction);
Honestly, I have no idea where to start so any help is appreciated