āļøIf you like my tweets, please join 400+ Software Engineers to receive an actionable tip weekly in your inbox through my Newsletter.(lnkd.in/d69Va5CM)
ā Use an overload of theĀ String.EqualsĀ method to test whether two strings are equal
ā Use theĀ String.CompareĀ andĀ String.CompareToĀ methods to sort strings, not to check for equality.
ā Use overloads that explicitly specify the string comparison rules for string operations. Typically, this involves calling a method overload that has a parameter of typeĀ StringComparison.
ā Use theĀ String.ToUpperInvariantĀ method instead of theĀ String.ToLowerInvariantĀ method when you normalize strings for comparison.
ā Use the non linguisticĀ StringComparisonOrdinalĀ orĀ StringComparison OrdinalIgnoreCaseĀ values instead of string operations based onĀ CultureInfo.InvariantCultureĀ when the comparison is linguistically irrelevant (symbolic, for example)
ā UseĀ StringComparison.OrdinalĀ orĀ StringComparison.OrdinalIgnoreCaseĀ for comparisons as your safe default for culture-agnostic string matching and better performance
āDon't use overloads that don't explicitly or implicitly specify the string comparison rules for string operations.
āDon't use string operations based onĀ StringComparison.InvariantCultureĀ in most cases.
āDon't use an overload of theĀ String.CompareĀ orĀ CompareToĀ method and test for a return value of zero to determine whether two strings are equal.
ā¢ ā¢ ā¢
Missing some Tweet in this thread? You can try to
force a refresh
GET is used to retrieve data, POST is used to save, PUT is used to update existing data edit is common example of it, PATCH is lighter version of PUT , it is used to update just a specific information instead of updating all data on server DELETE is used to remove records.
In CRUD operations
C stands for create : POST
R stands for read : GET
U stands for update : PUT/PATCH
D stands for delete : DELETE