Special characters

  • Thread starter Thread starter Vannela
  • Start date Start date
V

Vannela

In my unmamaged code varaibles declaration can use special
characters like
- Dash
_ Underscore (C# allows except this)
$ Dollar sign
# Number sign
% Percent sign
but C# will not allow how can i replace this characters
with other ones like cant dlete this charates from those
variables bcoz
if a variable by name "san#thu " exists and if i delete
this # from this variable then there can be other variable
by name "santhu " so both conflicts so how can i replace
these variable with the other ones?

Thank you
Vannela
 
Vannela said:
In my unmamaged code varaibles declaration can use special
characters like
- Dash
_ Underscore (C# allows except this)
$ Dollar sign
# Number sign
% Percent sign
but C# will not allow how can i replace this characters
with other ones like cant dlete this charates from those
variables bcoz
if a variable by name "san#thu " exists and if i delete
this # from this variable then there can be other variable
by name "santhu " so both conflicts so how can i replace
these variable with the other ones?

I would suggest just renaming them by hand to variables which still
make semantic sense but which don't include those characters. I don't
think they're necessary for readability purposes anyway.
 
Back
Top