Horje
enum extends dictionary c# Code Example
enum extends dictionary c#
type EnumDictionary<T extends string | symbol | number, U> = {
    [K in T]: U;
};

enum Direction {
    Up,
    Down,
}

const a: EnumDictionary<Direction, number> = {
    [Direction.Up]: 1,
    [Direction.Down]: -1
};




Csharp

Related
trigger enter with nav mesh Code Example trigger enter with nav mesh Code Example
meaning immutable and mutable Code Example meaning immutable and mutable Code Example
Functional Component Lifecycle Code Example Functional Component Lifecycle Code Example
SQLite insert data in C# (Source:NAYCode.com) Code Example SQLite insert data in C# (Source:NAYCode.com) Code Example
if equal statement c# Code Example if equal statement c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10