5 writes to BaseValue
Shared.Tests (5)
JsonSchemaExporter\TestTypes.cs (5)
605
Value: new PocoWithPolymorphism.DerivedPocoStringDiscriminator {
BaseValue
= 42, DerivedValue = "derived" },
607
new PocoWithPolymorphism.DerivedPocoNoDiscriminator {
BaseValue
= 42, DerivedValue = "derived" },
608
new PocoWithPolymorphism.DerivedPocoIntDiscriminator {
BaseValue
= 42, DerivedValue = "derived" },
609
new PocoWithPolymorphism.DerivedCollection {
BaseValue
= 42 },
610
new PocoWithPolymorphism.DerivedDictionary {
BaseValue
= 42 },
11 references to BaseValue
Shared.Tests (11)
JsonSchemaExporter\TestTypes.cs (11)
1099
public IEnumerator<int> GetEnumerator() => Enumerable.Repeat(
BaseValue
, 1).GetEnumerator();
1105
public int this[string key] => key == nameof(
BaseValue
) ?
BaseValue
: throw new KeyNotFoundException();
1106
public IEnumerable<string> Keys => [nameof(
BaseValue
)];
1107
public IEnumerable<int> Values => [
BaseValue
];
1109
public bool ContainsKey(string key) => key == nameof(
BaseValue
);
1110
public bool TryGetValue(string key, out int value) => key == nameof(
BaseValue
) ? (value =
BaseValue
) ==
BaseValue
: (value = 0) == 0;
1111
public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(
BaseValue
),
BaseValue
), 1).GetEnumerator();