Is there a way to write the C# method below:
public string Download(Encoding contentEncoding = null) { defaultEncoding = contentEncoding ?? Encoding.UTF8
Use overloads:
public string Download(Encoding contentEncoding) { // codes... } public string Download() { return Download(Encoding.UTF8); }