1
Answer

which one is faster string.Equals() or stringvariable.Equals

Hi ,
 
   In   string.Equals() is faster or stringVariable.Equals() is faster...?
 
 
Eg :
   string strname=" Test";
    string.Equals(strname, "Test123", StringComparison.OrdinalIgnoreCase))
 
Or
 
strname.Equals("Test123", StringComparison.OrdinalIgnoreCase) 
 
Thanks. 
 
Answers (1)