I have variables like this:
var a = "a variable";
var b = "test";
Is there a simple function I could call on the variables that would remove the spaces?
I have variables like this:
var a = "a variable";
var b = "test";
Is there a simple function I could call on the variables that would remove the spaces?
Do you mean something like this:
var aWithoutSpaces = a.Replace(" ", string.Empty);