dotnet-core/release-notes/3.0/preview/api-diff/preview1/3.0-preview1_System.Reflection.Emit.md
Ahson Khan e6b9c28c28
Add API diff between .NET Core 2.2 and .NET Core 3.0 preview1. (#2256)
* Add API diff between .NET Core 2.2 and .NET Core 3.0 preview1.

* Only compare ref assemblies within M.NetCore.App rather than all impl
assemblies from the repo.

* Remove Microsoft.* namespaces and update heading.
2019-01-28 21:02:57 -08:00

1.8 KiB

System.Reflection.Emit

 namespace System.Reflection.Emit {
     public sealed class DynamicMethod : MethodInfo {
+        public ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, string parameterName);
     }
     public class ModuleBuilder : Module {
+        public MethodBuilder DefinePInvokeMethod(string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet);
+        public MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet);
     }
     public sealed class TypeBuilder : Type {
+        public MethodBuilder DefinePInvokeMethod(string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet);
+        public MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet);
+        public MethodBuilder DefinePInvokeMethod(string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers, CallingConvention nativeCallConv, CharSet nativeCharSet);
     }
 }