Can TextBox.Text ever be null?
Posted in Windows Development, Tips, Web Development, .NET on Dec 21st, 2007
Recently I have been asked this question. Answer is that it cannot be null and will not be null, so you don’t have to:
.Text != null
Why? Because .Text property in base class does:
set
{
if (value == null)
[…]