Imported Upstream version 6.0.0.172

Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-12 14:10:50 +00:00
parent 8016999e4d
commit 64ac736ec5
32155 changed files with 3981439 additions and 75368 deletions

View File

@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
#if MONO_FEATURE_SRE
using System;
using System.Reflection;
using System.Reflection.Emit;
@ -44,11 +44,36 @@ using System.Collections.Generic;
namespace System.Reflection.Emit
{
#if !MOBILE
[ComVisible (true)]
[ComDefaultInterface (typeof (_MethodBuilder))]
[ClassInterface (ClassInterfaceType.None)]
partial class MethodBuilder : _MethodBuilder
{
void _MethodBuilder.GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
{
throw new NotImplementedException ();
}
void _MethodBuilder.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo)
{
throw new NotImplementedException ();
}
void _MethodBuilder.GetTypeInfoCount (out uint pcTInfo)
{
throw new NotImplementedException ();
}
void _MethodBuilder.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
{
throw new NotImplementedException ();
}
}
#endif
[StructLayout (LayoutKind.Sequential)]
public sealed class MethodBuilder : MethodInfo, _MethodBuilder
public sealed partial class MethodBuilder : MethodInfo
{
#pragma warning disable 169, 414
private RuntimeMethodHandle mhandle;
@ -237,7 +262,7 @@ namespace System.Reflection.Emit
ParameterInfo[] retval = new ParameterInfo [parameters.Length];
for (int i = 0; i < parameters.Length; i++) {
retval [i] = MonoParameterInfo.New (pinfo?[i + 1], parameters [i], this, i + 1);
retval [i] = RuntimeParameterInfo.New (pinfo?[i + 1], parameters [i], this, i + 1);
}
return retval;
}
@ -697,26 +722,6 @@ namespace System.Reflection.Emit
}
}
void _MethodBuilder.GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
{
throw new NotImplementedException ();
}
void _MethodBuilder.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo)
{
throw new NotImplementedException ();
}
void _MethodBuilder.GetTypeInfoCount (out uint pcTInfo)
{
throw new NotImplementedException ();
}
void _MethodBuilder.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
{
throw new NotImplementedException ();
}
public override ParameterInfo ReturnParameter {
get { return base.ReturnParameter; }
}