Closed bkoelman closed 6 years ago
Follow-up on https://github.com/dennisdoomen/CSharpGuidelines/issues/107 and https://github.com/dennisdoomen/CSharpGuidelines/issues/104#issuecomment-359691376, based on this article. After reading the article, I agree it would be better to distinguish between tuple element names and variables declared using tuple syntax.
So I propose to update the casing table in AV1702 like this:
(string First, string Last) name = ("John", "Doe");
var name = (First: "John", Last: "Doe");
(string First, string Last) GetName() => ("John", "Doe");
(string first, string last) = ("John", "Doe");
var (first, last) = ("John", "Doe");
Follow-up on https://github.com/dennisdoomen/CSharpGuidelines/issues/107 and https://github.com/dennisdoomen/CSharpGuidelines/issues/104#issuecomment-359691376, based on this article. After reading the article, I agree it would be better to distinguish between tuple element names and variables declared using tuple syntax.
So I propose to update the casing table in AV1702 like this:
(string First, string Last) name = ("John", "Doe");
var name = (First: "John", Last: "Doe");
(string First, string Last) GetName() => ("John", "Doe");
(string first, string last) = ("John", "Doe");
var (first, last) = ("John", "Doe");