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 -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -