I have a method that sets a variable to null when declared, but am getting a security error stating that the method can dereference a null pointer, thereby raising a NullException. By declaring the variable a string.Empty would that eliminate the NullException?
Loading
VulpesPosted Dec 15, 2014, 2:20 PM
It depends whether an empty string is a valid value for whatever it is you're setting.
MarcPosted Dec 15, 2014, 2:28 PM