|
-
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 
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
|