-
Notifications
You must be signed in to change notification settings - Fork 965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem in Camelize method #1397
Comments
@SimonCropp, I have also reported #1282. The point is, the |
@Nefcanto , I have a suggestion for such conversion. Can we pass an extra parameter for Camelize() or any other such function named separator? So, on the basis of the separator also, the string can be converted to any case. |
@lizapradhan-xpo, I think that is not a good choice. Because camelCasing is a well defined casing. There is no need for extra parameters. |
Simply run this code:
var kebabed = "some-text-here";
var camelized = kebabed.Camelize();
Console.WriteLine(camelized);
// prints some-text-here instead of someTextHere
var dotted = "some.text.here";
var camelized = dotted.Camelize();
Console.WriteLine(camelized);
// prints some.text.here instead of someTextHere
The text was updated successfully, but these errors were encountered: