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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -