Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.47 KB

File metadata and controls

56 lines (44 loc) · 1.47 KB

MutableString Build

MutableString is a lightweight string manipulation library designed to enhance performance and reduce memory allocations in scenarios where string manipulations are frequent. Unlike traditional immutable strings in .NET, MutableString allows you to modify string content without incurring the overhead of creating new string instances for each operation.

This package provides new types:

  • NiTiS.MutableString

Using

using System;
using NiTiS;

class Example
{
    void Main()
    {
        MutableString str = "Hello World";

        str.Insert(0, "> ");

        Console.WriteLine(str); // Output: "> Hello World"
    }
}

Installing

Via PackageReference

Append PackageReference node to your C# project file

<Project Sdk="Microsoft.NET.Sdk">
...
	<ItemGroup>
		...
		<!-- Append next line into your project file -->
		<PackageReference Include="MutableString" />
	</ItemGroup>
...
</Project>

Via .NET CLI

dotnet add package MutableString

Contributing

Contributions are welcome! Please read CONTRIBUTING.md before making any contribution to repository.

License

This project licensed under MIT license