refactor: cmdDelegate dictionary should be readonly

This commit is contained in:
Paul Pacheco 2019-08-11 12:53:21 -07:00
parent 1869c15173
commit 9ef34701d9

View File

@ -352,7 +352,7 @@ protected class Invoker
public CmdDelegate invokeFunction;
}
static Dictionary<int, Invoker> cmdHandlerDelegates = new Dictionary<int, Invoker>();
static readonly Dictionary<int, Invoker> cmdHandlerDelegates = new Dictionary<int, Invoker>();
// helper function register a Command/Rpc/SyncEvent delegate
[EditorBrowsable(EditorBrowsableState.Never)]