11,578 questions
Hello,
If you are referring too using default
for a parameter as per below
public static void Write(string message, bool append = true, DateTime timestamp = default, decimal value = default)
{
Console.WriteLine($"{message}, {append}, {timestamp}, {value}");
}
- append parameter is optional with a predefined value
- timestamp and value if not passed will be the default value for the type. For DateTime 1/1/0001 12:00:00 AM and decimal is 0.
See also
Optional Arguments and default value expressions.
If the above does not answer your question please provide a small example to what you are looking at
---