Skip to content

ToFrozenDictionary(bool) does not exist #42780

@deep-outcome

Description

@deep-outcome

Type of issue

Typo

Description

From https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/runtime#performance-focused-types

private static readonly FrozenDictionary<string, bool> s_configurationData =
    LoadConfigurationData().ToFrozenDictionary(optimizeForReads: true);

As per FrozenDictionary.ToFrozenDictionary Method there are 3 overloads of ToFrozenDictionary:

  • ToFrozenDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IEqualityComparer<TKey>)
  • ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)
  • ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

None of them has bool parameter named optimizeForReads.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/runtime

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/whats-new/dotnet-8/runtime.md

Document Version Independent Id

15cdd77f-e040-364f-035a-cecb0fac7cb6

Article author

@gewarren

Metadata

  • ID: cf0836eb-9b39-9da3-0bf8-cf9cd982727d
  • Service: dotnet-fundamentals

Related Issues


Associated WorkItem - 322615

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.⌚ Not TriagedNot triageddotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions