Messerli.ChangeCase 1.0.0

.NET 5.0 .NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
Install-Package Messerli.ChangeCase -Version 1.0.0
dotnet add package Messerli.ChangeCase --version 1.0.0
<PackageReference Include="Messerli.ChangeCase" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Messerli.ChangeCase --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Messerli.ChangeCase, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Messerli.ChangeCase as a Cake Addin
#addin nuget:?package=Messerli.ChangeCase&version=1.0.0

// Install Messerli.ChangeCase as a Cake Tool
#tool nuget:?package=Messerli.ChangeCase&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Messerli.ChangeCase

Transform a string between different casing styles like: camelCase, PascalCase, CONSTANT_CASE and others handling old style abbrevations correctly

Build Licence: MIT Licence: Apache

Packages

NuGet package

Usage

  using Messerli.ChangeCase

Sample usage:

  var camelCase = "snake_case".CamelCase() // => snakeCase

Use as Method Group

IEnumerable<string> names = new[] { "PascalCase", "camelCase", "snake_case", "UPPER_SNAKE_CASE" };

var namesInPascalCase = names
    .Select(StringCaseExtensions.PascalCase);

PascalCase()

Pascal Case

  "PascalCase".PascalCase(); // => PascalCase
  "camelCase".PascalCase(); // => CamelCase
  "snake_case".PascalCase(); // => SnakeCase
  "UPPER_SNAKE_CASE".PascalCase(); // => UpperSnakeCase
  "HTTPConnection".PascalCase(); // => HttpConnection
  "HTML".PascalCase(); // => Html

CamelCase()

Camel case

  "PascalCase".CamelCase(); // => pascalCase
  "camelCase".CamelCase(); // => camelCase
  "snake_case".CamelCase(); // => snakeCase
  "UPPER_SNAKE_CASE".CamelCase(); // => upperSnakeCase
  "HTTPConnection".CamelCase(); // => httpConnection
  "HTML".CamelCase(); // => html

SnakeCase()

Snake case

  "PascalCase".SnakeCase(); // => pascal_case
  "camelCase".SnakeCase(); // => camel_case
  "snake_case".SnakeCase(); // => snake_case
  "UPPER_SNAKE_CASE".SnakeCase(); // => upper_snake_case
  "HTTPConnection".SnakeCase(); // => http_connection
  "HTML".SnakeCase(); // => html

UpperSnakeCase()

Upper Snake case

  "PascalCase".UpperSnakeCase(); // => PASCAL_CASE
  "camelCase".UpperSnakeCase(); // => CAMEL_CASE
  "snake_case".UpperSnakeCase(); // => SNAKE_CASE
  "UPPER_SNAKE_CASE".UpperSnakeCase(); // => UPPER_SNAKE_CASE
  "HTTPConnection".UpperSnakeCase(); // => HTTP_CONNECTION
  "HTML".UpperSnakeCase(); // => HTML

KebabCase()

Kebab case

  "PascalCase".UpperSnakeCase(); // => pascal-case
  "camelCase".UpperSnakeCase(); // => camel-case
  "snake_case".UpperSnakeCase(); // => snake-case
  "UPPER_SNAKE_CASE".UpperSnakeCase(); // => upper-snake-case
  "HTTPConnection".UpperSnakeCase(); // => http-connection
  "HTML".UpperSnakeCase(); // => html
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • Funcky (>= 2.4.0 && < 3.0.0)
  • net5.0

    • Funcky (>= 2.4.0 && < 3.0.0)

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Messerli.ChangeCase:

Package Downloads
Messerli.LinqToRest

A LINQ QueryProvider that uses a REST API as its data source.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 261 9/7/2021
1.0.0 493 4/1/2021