From 5f53b5e655df9cd79ca5b68abfc7d001a6ea48d3 Mon Sep 17 00:00:00 2001 From: Kevin B Date: Sat, 24 Jul 2021 00:22:06 -0700 Subject: [PATCH] Update Guidelines(8th Edition).xml --- docs/Guidelines(8th Edition).xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/Guidelines(8th Edition).xml b/docs/Guidelines(8th Edition).xml index a18f1b5d..1a209be3 100644 --- a/docs/Guidelines(8th Edition).xml +++ b/docs/Guidelines(8th Edition).xml @@ -203,7 +203,6 @@ DO implement non-nullable reference-type automatically implemented properties as read-only. DO assign non-nullable reference-type properties before instantiation completes. "DO implement non-nullable read/write reference fully implemented properties with a nullable backing field, a null-forgiveness operator when returning the field from the getter, and non-null validation in the property setter." - "DO allow properties to be set in any order, even if this results in a temporarily invalid object state." DO favor composite formatting over use of the addition operator for concatenating strings when localization is a possibility. "DO NOT define a struct unless it logically represents a single value, consumes 16 bytes or less of storage, is immutable, and is infrequently boxed." DO ensure that the default value of a struct is valid; encapsulation cannot prevent obtaining the default “all zero” value of a struct. @@ -250,4 +249,4 @@ CONSIDER using target-typed new expressions any time that the instance clearly shows its type. "AVOID omitting braces, except for the simplest of single-line if statements." "DO use parentheses to make code more readable, particularly if the operator precedence is not clear to the casual reader." - \ No newline at end of file +