I was wondering if anyone knew why a public enum does not show up to use after creating an instance of the class that it resides in?
For example:
In ClassWithEnum:
public enum Values
{
value1 = 0,
value2 = 1
}
Then, create an instance of the class:
ClassWithEnum myClassInstance = new...
To follow up for others reading this posting, I found that the apostrophe character that was pulled from a Word Doc (Times New Roman) ended up being ASCII character number 8217, which obviously is not the normal apostrophe - ASCII character number 39. Once knowing this, I could find/replace it...
I appreciate the feedback. Perhaps my problem is that I am extracting text directly out of a word document and maybe the font is special and causing a problem??. From what I can see an apostrophe is normally ' (straight up and down), but in this string it is slanted forward, so maybe it is...
I have tried using the simple Replace function in C# to find and replace a single apostrophe with two, but neither the Replace function nor the IndexOf function find the single apostrophe.
Example: strToReplace = "Joe's shoes"
-- Code: strToReplace = strToReplace.Replace("'", "''");
Result...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.