Click here to Skip to main content
15,889,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I create string type parameter and return type also sting in my asp.net class?
Posted
Updated 27-Nov-11 23:14pm
v2

try this,
C#
public static string MyClass(string param1)
{

//body of class

return param1;

}


hope it helps,

please vote 5 if it helps you,


thanks
 
Share this answer
 
v2
Comments
prince_rumeel 28-Nov-11 5:15am    
thx alot
You may create a class with a pair of methods: 'setter' and 'getter' : the former to write the value of the string and the latter one to read the value of it. Or you may better use a property for this (see "Properties Overview" at MSDN[^]).
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900