Great advice to keep in mind when designing methods

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).

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.