public static void Register(TakeOperation operation, IDataRuleCodeSnippet codeSnippet) { lock (hashtable) { hashtable[operation] = codeSnippet; } }