How to convert this code so don't get error: cannot implicitly convert type 'bool' to 'int'?
int lans = SystemState.Con nectionsDesktop Count>0;
This code SystemState.Con nectionsDesktop Count>0 is type boolean originally.
I already try convert to this code:
int lans = Convert.ToInt32 (SystemState.Co nnectionsDeskto pCount>0);
and don't get any error but I think that it's not proper convert, any suggestion?
int lans = SystemState.Con nectionsDesktop Count>0;
This code SystemState.Con nectionsDesktop Count>0 is type boolean originally.
I already try convert to this code:
int lans = Convert.ToInt32 (SystemState.Co nnectionsDeskto pCount>0);
and don't get any error but I think that it's not proper convert, any suggestion?
Comment