C# Programming
07-14-2009, 07:50 PM
Hi Devs,
I am trying to return a string which goes out of scope.
public static string test(Guid ID)
{
if (a == n )
{
string abc = x.group;
}
return abc
}
What would be the best way to return the abc string because as it is declared in bracket, it gets out of scope.
Thank You
I am trying to return a string which goes out of scope.
public static string test(Guid ID)
{
if (a == n )
{
string abc = x.group;
}
return abc
}
What would be the best way to return the abc string because as it is declared in bracket, it gets out of scope.
Thank You