using System;
namespace OutParameters
{
class Program
{
static void Main(string[] args)
{
string scoreAsString = "85.6";
string statement = "Hello World";
double scoreAsDouble;
bool outcome;
outcome = Double.TryParse(scoreAsString, out scoreAsDouble);
Console.WriteLine($"{outcome} \n {scoreAsDouble}");
Whisper(statement, out bool marker);
}
static string Whisper(string statement, out bool marker){
string statement = "Hello World";
statement = statement.ToLower();
}
}
}
using System;
namespace OutParameters
{
class Program
{
static void Main(string[] args)
{
string scoreAsString = "85.6";
string statement = "Hello World";
double scoreAsDouble;
bool outcome;
outcome = Double.TryParse(scoreAsString, out scoreAsDouble);
Console.WriteLine($"{outcome} \n {scoreAsDouble}");
Whisper(statement, out bool marker);
}
static string Whisper(string statement, out bool marker){
string statement = "Hello World";
statement = statement.ToLower();
}
}
}