How can i add a new Functionor Property on textbox class's text property
- by Shantanu Gupta
I want to add one more function/property to a text property of a textbox like this.
txtControl.Text.IsEmpty(); or txtControl.Text.IsEmpty;
which returns me bool value.
I dont want to compare for empty string every time.
i.e.
if(txtControl.text==string.Empty)
{}
else
{}
Can we do some other way also
if just want to do it like
if(txtControl.text.isEmpty){}