private void CreateCallableTypeBeginInvokeExtensions(AnonymousCallableType anonymousType, Method beginInvoke) { ClassDefinition extensions = TypeSystemServices.GetCompilerGeneratedExtensionsClass(); extensions.Members.Add(CreateBeginInvokeCallbackOnlyExtension(anonymousType, beginInvoke)); extensions.Members.Add(CreateBeginInvokeSimplerExtension(anonymousType, beginInvoke)); }