As stated in the SLAR notes for System.Net.Authorization, avoid boolean parameters to methods.
Use an enum that captures the intent of the parameter instead. I hate
System.String.Compare(string, string, bool)
for just this reason.
String.Compare("ben", "Ben", true)
just looks silly to me. I much
prefer the new version that takes a StringComparison
enum, resulting in
String.Compare("ben", "Ben", StringComparison.CurrentCultureIgnoreCase)
.
Advertisements