c# - TextBox.Clear() or TextBox.Text = string.Empty -


is there difference between them? thank you

textbox.clear();   textbox.text = string.empty; 

in practice: nope. internally, there is. both clear text in different ways.

i wouldn't dare tell 1 better, if want follow sources, here's clear() , here's when change text


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -