Comparing strings using the String.Length property or the String.IsNullOrEmpty method is faster than using Equals. This is because Equals executes significantly more MSIL instructions than either IsNullOrEmpty or the number of instructions executed to retrieve the Length property value and compare it to zero.pull/5493/head
parent
08ee2f7e32
commit
b2c2c79a96
Loading…
Reference in new issue