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...
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.