SingleOrDictionary<TKey, TValue> Class

Summary

Stores either a single key value pair or constructs a dictionary when more than one value is stored.
Namespace
Avalonia.Utilities
Interfaces
  • IEnumerable<KeyValuePair<TKey, TValue>>
  • IEnumerable
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEnumerable<KeyValuePair<TKey, TValue>>"] Type-.->Interface1["IEnumerable"] Type["SingleOrDictionary<TKey, TValue>"] class Type type-node

Syntax

public class SingleOrDictionary<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable

Type Parameters

Name Description
TKey The type of the key.
TValue The type of the value.

Properties

Name Value Summary
Values IEnumerable<TValue>

Methods

Name Value Summary
Add(TKey, TValue) void
GetEnumerator() IEnumerator<KeyValuePair<TKey, TValue>>
TryGetValue(TKey, TValue) bool