|
-
Nov 17th, 2009, 02:07 AM
#1
Thread Starter
Addicted Member
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
Failing to plan is Planning to fail 
-
Nov 17th, 2009, 02:37 AM
#2
Re: Assign method to string and instantiate the string from object
-
Nov 17th, 2009, 03:41 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|