• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

Class DictionaryDeviceCapabilityLabels

Implements a label mapping using a backing dictionary. Missing labels are replaced with the empty string.

Inheritance
System.Object
DictionaryDeviceCapabilityLabels
Implements
IDeviceCapabilityLabels
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<DeviceCapability, System.String>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Input.Device
Assembly: Snowflake.Framework.dll
Syntax
public sealed class DictionaryDeviceCapabilityLabels : IDeviceCapabilityLabels, IEnumerable<KeyValuePair<DeviceCapability, string>>, IEnumerable

Constructors

DictionaryDeviceCapabilityLabels(IDictionary<DeviceCapability, String>)

Create a new IDeviceCapabilityLabels using a backing dictionary.

Declaration
public DictionaryDeviceCapabilityLabels(IDictionary<DeviceCapability, string> labels)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<DeviceCapability, System.String> labels

The backing dictionary to use.

Properties

Item[DeviceCapability]

Declaration
public string this[DeviceCapability capability] { get; }
Parameters
Type Name Description
DeviceCapability capability
Property Value
Type Description
System.String

Methods

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<DeviceCapability, string>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<DeviceCapability, System.String>>

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

IDeviceCapabilityLabels
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.