dotnet / dotnet/macios

NSAttributedString/NSString constructor from StringBuilder

Open
#15,446 0 comments 1 reaction 0 assignees View on GitHub
copilot-candidate feature help wanted performance
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

### Steps to Reproduce

1. Use a `StringBuilder` to construct a string
2. `new NSAttributedString(sb.ToString())`
3. Feel powerless when allocations can't be avoided

### Expected Behavior

There should be a way to construct the `NSAttributedString`/`NSString` from the `StringBuilder` chunks, instead of having to map the entire string in memory.

### Actual Behavior

The opposite.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.