Quantcast
Viewing all articles
Browse latest Browse all 3747

Are some built-in enumerations incoherently implemented in the language?

Hi,

I’ve written this code right now:
TFPassword.Text.Compare(Password,ComparisonOptions.CaseSensitive)
(up to now, I used the global function instead)

I find it weird that ComparisonOptions is not an enumeration of the string class. For instance, when using DateTime.ToString, the parameters are of type DateTime.FormatStyle. ComparisonOptions has no logical reason to be “global” as it only applies to strings.

Is it just my impression, or this is rather incoherent?

8 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3747

Trending Articles