Hello. I have method (called GetKey) in a class that returns a string.
Also, I have in another class, a method which makes a call to the GetKey
method. What I wish to do is to do an evaluation of the return value of the
GetKey method, within this 2nd class. My question is, should I create a
field/property and assign it the value of the return value in GetKey class?
What you suggest? Here is some fake code so far
Class GetKey
{
public string GetKeyMethod(string myParam)
{
....
.....
return myKey
}
Class Myclass
{
GeyKey gk = new GetKey()
gk.GetKey(someParam)
//MUST NOW DO EVAL OF myKey,,, IF (blah blah blah)