What is the difference between (“”) and (null)

前端 未结 9 1215
鱼传尺愫
鱼传尺愫 2021-01-04 18:33

While trying to set Validations i initially encountered some problems with checking if a textbox is null, i tried using

    private void btnGo_Click(object s         


        
9条回答
  •  日久生厌
    2021-01-04 19:03

    The same as the difference between 0 and an empty array: everything. They’re different values. "" is an empty string, and that’s what a blank textbox holds as text is all. null is no value, and is not what a blank textbox has as Text.

提交回复
热议问题