G
Guest
Hi,
Newbie here. Here's my code for a c# console app:
public static int Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Please enter a database name.");
return 1;
}
Console.WriteLine (@args[0]);
Find t = new Find();
t.DatabaseName = @args[0];
t.Search();
return 0;
}
If I use "master" has a parameter, what gets printed to the commandline is
master. I want to print "master". Why are the double-quotes getting lost? I
also want to set the t object's DatabaseName property to include the
double-quotes, but it's losing them too.
What am I missing? Thanks.
Newbie here. Here's my code for a c# console app:
public static int Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Please enter a database name.");
return 1;
}
Console.WriteLine (@args[0]);
Find t = new Find();
t.DatabaseName = @args[0];
t.Search();
return 0;
}
If I use "master" has a parameter, what gets printed to the commandline is
master. I want to print "master". Why are the double-quotes getting lost? I
also want to set the t object's DatabaseName property to include the
double-quotes, but it's losing them too.
What am I missing? Thanks.