xenia27
asked on
How can I pass parameter values from function to function?
Hi,
As what I state in the title, I want to know how can I pass parameter values...
Here is what I have in my codes...
public struct TypeA
{
string name;
int value;
}
public void Function123(int paramA, TypeA paramB)
{
// here I try to get paramA and paramB values
}
public void Main
{
TypeA target;
int index;
Function123(index, target); <-- here I try to get values from this function but the values seem not passed through the function
}
How exactly I should do to pass parameter values??
As what I state in the title, I want to know how can I pass parameter values...
Here is what I have in my codes...
public struct TypeA
{
string name;
int value;
}
public void Function123(int paramA, TypeA paramB)
{
// here I try to get paramA and paramB values
}
public void Main
{
TypeA target;
int index;
Function123(index, target); <-- here I try to get values from this function but the values seem not passed through the function
}
How exactly I should do to pass parameter values??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER