string.ToLowerCamelCase()

Here are the examples of the csharp api string.ToLowerCamelCase() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : Extensions.cs
with GNU General Public License v3.0
from ilchenkob

public static PropertyDeclarationSyntax AddJsonPropertyAttribute(this PropertyDeclarationSyntax prop)
    {
      var propName = prop.Identifier.ValueText;
      return prop.AddAttributeLists(new[]
      {
        SyntaxFactory.AttributeList(SyntaxFactory.SingletonSeparatedList(
            SyntaxFactory.Attribute(SyntaxFactory.IdentifierName(Constants.Attribute.JsonProperty))
              .WithArgumentList(
                SyntaxFactory.AttributeArgumentList(
                  SyntaxFactory.SingletonSeparatedList(
                    SyntaxFactory.AttributeArgument(
                      SyntaxFactory.LiteralExpression(
                        SyntaxKind.StringLiteralExpression,
                        SyntaxFactory.Literal(propName.ToLowerCamelCase())
                      )
                    )
                  )
                )
              )
          )
        )
      });
    }

19 Source : BaseIndexer.cs
with GNU Affero General Public License v3.0
from ONLYOFFICE

private string TryGetName(Expression expr, out MemberExpression member)
        {
            member = expr as MemberExpression;
            if (member == null)
            {
                if (expr is UnaryExpression unary)
                {
                    member = unary.Operand as MemberExpression;
                }
            }

            return member == null ? "" : member.Member.Name.ToLowerCamelCase();
        }