Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ef15f20

Browse files
committed
PCL doesn't support string.Contains(char)
1 parent 9148e01 commit ef15f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public static string ToPascalCase(this string value)
590590
{
591591
if (string.IsNullOrEmpty(value)) return value;
592592

593-
if (value.Contains('_'))
593+
if (value.IndexOf('_') >= 0)
594594
{
595595
var parts = value.Split('_');
596596
var sb = new StringBuilder();

0 commit comments

Comments
 (0)