Assign NULL value to Boolean variable

前端 未结 3 1180
既然无缘
既然无缘 2021-02-05 02:19

I am trying to assign null value to Boolean variable but it is not taking it

bool b = null;
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 02:56

    For this you need to use following code to assign NULL value.

    Nullable b=null;
    

提交回复
热议问题