ILSpy shows that String.IsNullOrEmpty is implemented in terms of String.Length. But then why is String.IsNullOrEmpty(s) faster than
String.IsNullOrEmpty
String.Length
String.IsNullOrEmpty(s)
it may be caused by the types of the involved variables. *Empty seems to use a boolean, length an int (i guess).
Peace !