I have the following code;
char[] leadingDot = { '.' };
string trimStart = fileName.TrimStart(leadingDot);
I cannot seem to figure out the syntax to combine it into a single line. ReSharper has no suggestions either.
I completely understand why the following code doesn't work, let alone look right, but I would expect something like:
string trimStart = fileName.TrimStart( { '.' } );
It gives me the same vibe you get when you type var x = null; Ideas?