MCPcopy Create free account
hub / github.com/davidfowl/BombRMan / ToString

Method ToString

BombRMan.Core/Hubs/KeyboardState.cs:29–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28 var index = (int)key >> 5;
29 var bit = (uint)(1 << ((int)key & 0x1f));
30 return (KeyState[index] & bit) == bit;
31 }
32 }
33
34 public override string ToString()
35 {
36 var sb = new StringBuilder();
37 foreach (var value in Enum.GetValues(typeof(Keys)))
38 {
39 if (sb.Length > 0)
40 {
41 sb.Append(", ");
42 }
43
44 sb.Append(Enum.GetName(typeof(Keys), value))
45 .Append(" = ")
46 .Append(this[(Keys)value]);
47 }
48
49 sb.AppendLine();
50

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected