Struct KevlarKey<T>

Namespace
Kevlar
Assembly
Kevlar.dll

A strongly typed key for storing values in KevlarProperties.

public readonly struct KevlarKey<T> : IEquatable<KevlarKey<T>>

Type Parameters

T

The type of the value stored under this key.

Implements
Inherited Members

Constructors

KevlarKey(string)

Creates a key with the given name. Names are case-sensitive.

public KevlarKey(string name)

Parameters

name string

Properties

Name

The key's name.

public string Name { get; }

Property Value

string

Methods

Equals(KevlarKey<T>)

public bool Equals(KevlarKey<T> other)

Parameters

other KevlarKey<T>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(KevlarKey<T>, KevlarKey<T>)

Returns whether two keys have the same case-sensitive name.

public static bool operator ==(KevlarKey<T> left, KevlarKey<T> right)

Parameters

left KevlarKey<T>
right KevlarKey<T>

Returns

bool

operator !=(KevlarKey<T>, KevlarKey<T>)

Returns whether two keys have different case-sensitive names.

public static bool operator !=(KevlarKey<T> left, KevlarKey<T> right)

Parameters

left KevlarKey<T>
right KevlarKey<T>

Returns

bool