- Details
- Written by: Stanko Milosev
- Category: Beginning
- Hits: 4705
If varible is string, then to check if it is null use:
if (containerid.IsNullOrEmpty())
{ containerid = "-1"; }
Or String.IsNullOrEmpty()
Because null is not empty...
If varible is string, then to check if it is null use:
if (containerid.IsNullOrEmpty())
{ containerid = "-1"; }
Or String.IsNullOrEmpty()
Because null is not empty...