public void SetMethodParameterStackSize(MosaMethod method, int size) { lock (methodParameterStackSizes) { methodParameterStackSizes.Remove(method); methodParameterStackSizes.Add(method, size); } }