Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AnimationKey.cs
2{
6 public readonly record struct AnimationKey
7 {
13 public AnimationKey(string RawValue)
14 {
15 if (string.IsNullOrWhiteSpace(RawValue))
16 throw new ArgumentException("Animation key cannot be null or whitespace.", nameof(RawValue));
17
18 this.Value = RawValue;
19 }
20
24 public string Value { get; }
25
30 public override string ToString() => this.Value;
31
35 public static implicit operator AnimationKey(string RawValue) => new AnimationKey(RawValue);
36 }
37}
Represents a strongly typed key used for identifying animations.
Definition: AnimationKey.cs:7
override string ToString()
Converts the key to its string representation.
AnimationKey(string RawValue)
Initializes a new instance of the AnimationKey struct.
Definition: AnimationKey.cs:13
string Value
Gets the raw key value.
Definition: AnimationKey.cs:24