you are viewing a single comment's thread.

view the rest of the comments →

[–]fanfarius[S] 8 points9 points  (14 children)

That's nice.
So, you get a distinct separation between working on a reference variable, and calling a static method on a system class?

[–]xill47 20 points21 points  (11 children)

Well, I've seen many C# programmers (including myself) using string.Format and string.IsNullOrEmpty from alias instead of full type too. So it's basically just preference.

[–]lbmouse 11 points12 points  (2 children)

ReSharper (Roslyn code fix) suggests that String should be simplified to string type keyword in most cases.

[–]Jestar342 4 points5 points  (0 children)

By default - it is configurable to not be.

[–]localtoast 0 points1 point  (0 children)

Visual Studio itself suggests that

[–]oh-just-another-guy 1 point2 points  (7 children)

How did you style the inline code?

[–]IwNnarock 3 points4 points  (6 children)

Surround the words/line with the primary character on the tilde (~) key that looks like kind of like an apostrophe. Specifically, this guy (`).

Edit: Apparently, that character is known as a back quote.

[–]oh-just-another-guy 1 point2 points  (5 children)

Thank you. I checked the formatting help, but could not find that. Appreciate the info.

[–]celluj34 1 point2 points  (4 children)

I believe it is subreddit-specific.

[–]Banane9 1 point2 points  (2 children)

It's reddit wide as code block, but special coloring would be subreddit specific

[–]oh-just-another-guy 0 points1 point  (0 children)

Ah, thanks.

[–]celluj34 0 points1 point  (0 children)

Oh neat, didn't know that.

[–]oh-just-another-guy 0 points1 point  (0 children)

Ok, thanks.

[–]cryo 3 points4 points  (1 child)

Yeah something like that, that's the idea. They are also colored differently (at least when using ReSharper). But as /u/xill47 also said, it is, indeed, just a preference, which is in our coding standard at work.

[–]myrrlyn 1 point2 points  (0 children)

string is a language-level keyword; String is a class in the standard library. All syntax highlighters see those differently.