https://github.com/nitison/mutablestring
Mutable string implementation for C#
https://github.com/nitison/mutablestring
csharp dotnet mutable mutable-string string
Last synced: 6 months ago
JSON representation
Mutable string implementation for C#
- Host: GitHub
- URL: https://github.com/nitison/mutablestring
- Owner: NiTiSon
- License: mit
- Created: 2025-01-04T23:32:03.000Z (about 1 year ago)
- Default Branch: stable
- Last Pushed: 2025-03-12T18:50:04.000Z (12 months ago)
- Last Synced: 2025-08-22T21:27:28.017Z (6 months ago)
- Topics: csharp, dotnet, mutable, mutable-string, string
- Language: C#
- Homepage: https://www.nuget.org/packages/MutableString
- Size: 141 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# MutableString [](https://github.com/NiTiSon/MutableString/actions/workflows/tests.yml)
`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
```cs
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
```csproj
...
...
...
```
### Via .NET CLI
```sh
dotnet add package MutableString
```
## Contributing
Contributions are welcome!
Please read [CONTRIBUTING.md](https://github.com/NiTiSon/MutableString/blob/stable/CONTRIBUTING.md) before making any contribution to repository.
## License
This project licensed under [MIT license](https://raw.githubusercontent.com/NiTiSon/MutableString/refs/heads/stable/LICENSE)