public void AddFunctionToDynamicType(string funcSig, ContractDefinition dynamicType, FunctionDefinition funcDef) { if (!SignatureFunctionMap.ContainsKey(funcSig)) { SignatureFunctionMap[funcSig] = new Dictionary <ContractDefinition, FunctionDefinition>(); } // may potentially override the previous value due to inheritance SignatureFunctionMap[funcSig][dynamicType] = funcDef; }
public bool doesContainFunctionSignature(string funcSig) { return(SignatureFunctionMap.ContainsKey(funcSig)); }