Files
2026-06-04 11:42:34 +02:00

187 lines
4.6 KiB
C#

using System;
using System.Globalization;
namespace System.Reflection
{
// Token: 0x02000209 RID: 521
internal class MonoArrayMethod : MethodInfo
{
// Token: 0x06001BB1 RID: 7089 RVA: 0x00067C4C File Offset: 0x00065E4C
internal MonoArrayMethod(Type arrayClass, string methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
{
this.name = methodName;
this.parent = arrayClass;
this.ret = returnType;
this.parameters = (Type[])parameterTypes.Clone();
this.call_conv = callingConvention;
}
// Token: 0x06001BB2 RID: 7090 RVA: 0x00067C84 File Offset: 0x00065E84
[MonoTODO("Always returns this")]
public override MethodInfo GetBaseDefinition()
{
return this;
}
// Token: 0x170004EC RID: 1260
// (get) Token: 0x06001BB3 RID: 7091 RVA: 0x00067C88 File Offset: 0x00065E88
public override Type ReturnType
{
get
{
return this.ret;
}
}
// Token: 0x170004ED RID: 1261
// (get) Token: 0x06001BB4 RID: 7092 RVA: 0x00067C90 File Offset: 0x00065E90
[MonoTODO("Not implemented. Always returns null")]
public override ICustomAttributeProvider ReturnTypeCustomAttributes
{
get
{
return null;
}
}
// Token: 0x06001BB5 RID: 7093 RVA: 0x00067C94 File Offset: 0x00065E94
[MonoTODO("Not implemented. Always returns zero")]
public override MethodImplAttributes GetMethodImplementationFlags()
{
return MethodImplAttributes.IL;
}
// Token: 0x06001BB6 RID: 7094 RVA: 0x00067C98 File Offset: 0x00065E98
[MonoTODO("Not implemented. Always returns an empty array")]
public override ParameterInfo[] GetParameters()
{
return new ParameterInfo[0];
}
// Token: 0x06001BB7 RID: 7095 RVA: 0x00067CA0 File Offset: 0x00065EA0
[MonoTODO("Not implemented")]
public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
{
throw new NotImplementedException();
}
// Token: 0x170004EE RID: 1262
// (get) Token: 0x06001BB8 RID: 7096 RVA: 0x00067CA8 File Offset: 0x00065EA8
public override RuntimeMethodHandle MethodHandle
{
get
{
return this.mhandle;
}
}
// Token: 0x170004EF RID: 1263
// (get) Token: 0x06001BB9 RID: 7097 RVA: 0x00067CB0 File Offset: 0x00065EB0
[MonoTODO("Not implemented. Always returns zero")]
public override MethodAttributes Attributes
{
get
{
return MethodAttributes.PrivateScope;
}
}
// Token: 0x170004F0 RID: 1264
// (get) Token: 0x06001BBA RID: 7098 RVA: 0x00067CB4 File Offset: 0x00065EB4
public override Type ReflectedType
{
get
{
return this.parent;
}
}
// Token: 0x170004F1 RID: 1265
// (get) Token: 0x06001BBB RID: 7099 RVA: 0x00067CBC File Offset: 0x00065EBC
public override Type DeclaringType
{
get
{
return this.parent;
}
}
// Token: 0x170004F2 RID: 1266
// (get) Token: 0x06001BBC RID: 7100 RVA: 0x00067CC4 File Offset: 0x00065EC4
public override string Name
{
get
{
return this.name;
}
}
// Token: 0x06001BBD RID: 7101 RVA: 0x00067CCC File Offset: 0x00065ECC
public override bool IsDefined(Type attributeType, bool inherit)
{
return MonoCustomAttrs.IsDefined(this, attributeType, inherit);
}
// Token: 0x06001BBE RID: 7102 RVA: 0x00067CD8 File Offset: 0x00065ED8
public override object[] GetCustomAttributes(bool inherit)
{
return MonoCustomAttrs.GetCustomAttributes(this, inherit);
}
// Token: 0x06001BBF RID: 7103 RVA: 0x00067CE4 File Offset: 0x00065EE4
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
return MonoCustomAttrs.GetCustomAttributes(this, attributeType, inherit);
}
// Token: 0x06001BC0 RID: 7104 RVA: 0x00067CF0 File Offset: 0x00065EF0
public override string ToString()
{
string text = string.Empty;
ParameterInfo[] array = this.GetParameters();
for (int i = 0; i < array.Length; i++)
{
if (i > 0)
{
text += ", ";
}
text += array[i].ParameterType.Name;
}
if (this.ReturnType != null)
{
return string.Concat(new string[]
{
this.ReturnType.Name,
" ",
this.Name,
"(",
text,
")"
});
}
return string.Concat(new string[] { "void ", this.Name, "(", text, ")" });
}
// Token: 0x04000848 RID: 2120
internal RuntimeMethodHandle mhandle;
// Token: 0x04000849 RID: 2121
internal Type parent;
// Token: 0x0400084A RID: 2122
internal Type ret;
// Token: 0x0400084B RID: 2123
internal Type[] parameters;
// Token: 0x0400084C RID: 2124
internal string name;
// Token: 0x0400084D RID: 2125
internal int table_idx;
// Token: 0x0400084E RID: 2126
internal CallingConventions call_conv;
}
}