Skip to content

Add some APIs on AspNetCoreVirtualCharSequence#61554

Merged
CyrusNajmabadi merged 3 commits intomainfrom
jamesnk/aspnetcorevirtualcharsequence
May 29, 2022
Merged

Add some APIs on AspNetCoreVirtualCharSequence#61554
CyrusNajmabadi merged 3 commits intomainfrom
jamesnk/aspnetcorevirtualcharsequence

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented May 27, 2022

Builds on top of #61529

These are some APIs that either aren't possible, i.e. creating a new sequence via GetSubSequence, or reach into the internals of VirtualCharSequence. This PR exposes them on AspNetCoreVirtualCharSequence.

@JamesNK JamesNK requested a review from CyrusNajmabadi May 27, 2022 06:31
@JamesNK JamesNK requested review from a team as code owners May 27, 2022 06:32
@ghost ghost added the Area-IDE label May 27, 2022
public string CreateString() => _virtualCharSequence.CreateString();

/// <inheritdoc cref="VirtualCharSequence.IsDefault"/>
public bool IsDefault => _virtualCharSequence.IsDefault;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious what you need this for @JamesNK . How are you ending up with a default sequence?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using default to create empty sequences. Updated the PR to have a static readonly Empty field instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFM.

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge May 29, 2022 01:01
@CyrusNajmabadi CyrusNajmabadi merged commit e62c649 into main May 29, 2022
@ghost ghost added this to the Next milestone May 29, 2022
@Cosifne Cosifne modified the milestones: Next, 17.3 P2 May 31, 2022
@JamesNK JamesNK deleted the jamesnk/aspnetcorevirtualcharsequence branch June 7, 2022 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants