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