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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -