Assign method to string and instantiate the string from object
Hi friends,
I have one doubt. I have two functions in single class.
Now i create instance for the class ex class1 objrole = new class1();
Public string getRole()
{
}
Now i can get the method from object that is objrole.getRole();
But i assign this function to string that is string S = getRole();
What is my question is i can get the function using object ie objrole.getRole();
can i get the string like objrole.s() ???? ie i can assign method to string.
Hope yours reply.
Thanks
Re: Assign method to string and instantiate the string from object
Re: Assign method to string and instantiate the string from object
Hey,
I think Dee-U might be on the right lines with his link, but to be sure, I didn't really follow your question.
Can you perhaps provide some more information?
Gary