I have a method
public Action FirstAction(object data)
{
}
I need to pass two variables to this class, which are different types, for example int, stringor any other type of object.
I read that I can do it
FirstAction( new{int a, string b} )
My question is: how to access two separated variables in a method FirstAction?
Note. I cannot change the settings objectto object[]or params object[]; this must be done with the current signature.
source
share