.NET API 252,696 bytes
OrdinalStringFrozenDictionary_RightJustifiedSingleChar<TValue>
using System.
Collections.
Generic;
using System.
Runtime.
CompilerServices;
namespace System.
Collections.
Frozen
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
[
System.
Runtime.
CompilerServices.
Nullable(
new byte[] {
0,
1
})]
internal sealed class OrdinalStringFrozenDictionary_RightJustifiedSingleChar<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
TValue> :
OrdinalStringFrozenDictionary<
TValue>
{
internal OrdinalStringFrozenDictionary_RightJustifiedSingleChar(
string[]
keys,
TValue[]
values,
IEqualityComparer<
string>
comparer,
int minimumLength,
int maximumLengthDiff,
int hashIndex)
:
base(
keys,
values,
comparer,
minimumLength,
maximumLengthDiff,
hashIndex,
1)
{
}
[
return:
System.
Runtime.
CompilerServices.
IsReadOnly]
private protected override ref TValue GetValueRefOrNullRefCore(
string key)
{
return ref base.
GetValueRefOrNullRefCore(
key);
}
[
System.
Runtime.
CompilerServices.
NullableContext(
2)]
private protected override bool Equals(
string x,
string y)
{
return string.
Equals(
x,
y);
}
private protected override int GetHashCode(
string s)
{
return s[
s.
Length +
base.
HashIndex];
}
}
}