public DynamicTypeInfo WithMethod(string methodName, Action <DynamicMethodInfo> methodDefinition)
        {
            var newMethodInfo = new DynamicMethodInfo(this, methodName);

            methodDefinition(newMethodInfo);

            return(this);
        }
 public void SetEntryPoint(DynamicMethodInfo method)
 {
     _assemblyBuilder.SetEntryPoint(method.MethodBuilder);
 }