I have a problem, a char is being inserted into a Dataset that I am trying to remove before the Dataset is being filled.
I have tried copying the Char and doing a String Match on it. It fails and gets inserted anyway.
The Char is:
also, I have one more:
'
My string matches:
if (KVP.Key != "'")
if (KVP.Key != " ")
Where KVP is the KeyValuePair
in a Dictionary.
The only way I have thought of, to filter and remove is to convert the char's to the Unicode Code and look directly for that. Problem is, I can not find the Unicode Code.
I want to look for something like:
U+0061 = 'a'
if I use:
MessageBox.Show("U+" + char.GetNumericValue('a').ToString());
I get:
-1
then I can find the Char and match. I cannot find the conversion method for this procedure. Do I need a Lookup table with the Unicode Values? Or is there a C# Class already?