示例#1
0
文件: EnumTable.cs 项目: wtfcolt/game
 /// <summary>
 /// Gets the index for a key.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <returns>The index for the <paramref name="key"/>.</returns>
 static int GetIndex(TKey key)
 {
     return(KeyInfo <TKey> .ToInt(key));
 }