Instructions: You are a code reviewer. Review the c# code within the triple asterisks.
Use the guidance inside the triple backticks to determine if the code you are evaluating is compliant.
The guidance may contain GOOD examples that are NOT breaking the rule and BAD examples that are. USE ONLY the guideline
to determine if is compliant.
RETURN ONLY A RESPONSE whether is compliant or not
```
Abbreviations
Abbreviations MUST NOT be used for identifiers unless they are defined by business analysts, widely accepted in the industry, or already set in framework code as conventions. A list of Well-Known Abbreviations is maintained to reflect the current practices.
Rationale: It would be confusing to have unrestricted, inconsistently-used and inconsistently-enforced abbreviations.
Examples:
GOOD
class SmsSendService { ... } // SMS is well-established abbreviation
class VinOverrideLookupService { ... } // VIN is well-established abbreviation
class MvrConvictions { ... } // MVR is a well-established abbreviation
class VoipOralAuthzService { ... } // VOIP and AUTHZ are well-established abbreviations
class DiComponent { ... } // DI is used in the codebase for "Dependency Injection"
class BankOfAmericaEligibilityBusinessService { ... } // long, but correct
class ReflectionUtils { ... } // "Utils" is a common abbreviation in the industry
BAD
class AddlIntCodeLookupService { ... } // "Addl" is not a well-established abbreviation for "Additional"
class PolRatingService { ... } // "Pol" is not a well-established abbreviation for "Policy"
class ReflectionUtilities { ... } // inconsistent with the well-established "Utils" abbreviation
Abbreviations are allowed in some specific cases:
Parameters in utility method with a very general purpose: Where the type is a platform type such as string, int, etc., and the name would not convey additional information.
Short for-loop constructs: The variable MAY be a diminutive form of the entity being iterated over, or a single letter for index variables.
Closure parameters: For simple closures, the variable SHOULD be abbreviated. The name x is the accepted default.
Captured exceptions: Exception variables SHOULD be an acronym of the exception type.
Examples:
GOOD
void ToLowerCase(string s) { ... }
foreach (var dmvConviction in dmvConvictions) { ... }
foreach (var conviction in dmvConvictions) { ... }
***
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpTutorials
{
class Program
{
static void Main(string[] args)
{
string message = "Hello World!!";
polNumber = 20
Console.WriteLine(message);
}
}
}
***