-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
MethodInvoker.xml
266 lines (264 loc) · 16.8 KB
/
MethodInvoker.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<Type Name="MethodInvoker" FullName="System.Reflection.MethodInvoker">
<TypeSignature Language="C#" Value="public sealed class MethodInvoker" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit MethodInvoker extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Reflection.MethodInvoker" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class MethodInvoker" />
<TypeSignature Language="F#" Value="type MethodInvoker = class" />
<TypeSignature Language="C++ CLI" Value="public ref class MethodInvoker sealed" />
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides methods to invoke the method specified by the provided <see cref="T:System.Reflection.MethodBase" />.</summary>
<remarks>The methods in this class provide better performance than <see cref="M:System.Reflection.MethodBase.Invoke(System.Object,System.Object[])" /> when compatibility with that method isn't necessary and when the caller can cache the MethodInvoker instance for additional invoke calls. Unlike <see cref="M:System.Reflection.MethodBase.Invoke(System.Object,System.Object[])" />, the invoke methods in this class don't look up default values for arguments when <see cref="F:System.Type.Missing" /> is specified. In addition, the target method may be inlined for performance and not appear in stack traces.</remarks>
</Docs>
<Members>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public static System.Reflection.MethodInvoker Create (System.Reflection.MethodBase method);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Reflection.MethodInvoker Create(class System.Reflection.MethodBase method) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Create(System.Reflection.MethodBase)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function Create (method As MethodBase) As MethodInvoker" />
<MemberSignature Language="F#" Value="static member Create : System.Reflection.MethodBase -> System.Reflection.MethodInvoker" Usage="System.Reflection.MethodInvoker.Create method" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Reflection::MethodInvoker ^ Create(System::Reflection::MethodBase ^ method);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Reflection.MethodInvoker</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="method" Type="System.Reflection.MethodBase" />
</Parameters>
<Docs>
<param name="method">The method that will be invoked.</param>
<summary>Creates a new instance of <see cref="T:System.Reflection.MethodInvoker" />.</summary>
<returns>The new instance.</returns>
<remarks>For performance, the resulting instance should be cached for additional calls.</remarks>
<exception cref="T:System.ArgumentException">The <paramref name="method" /> is not a runtime-based method.</exception>
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj -> obj" Usage="methodInvoker.Invoke obj" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<summary>Invokes the method using the specified arguments.</summary>
<returns>An object containing the return value of the invoked method, or <see langword="null" /> if the invoked method does not have a return value.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.Reflection.TargetException">The <paramref name="obj" /> argument is <see langword="null" /> and the method is not static.
-or-
The method is not declared or inherited by the class of <paramref name="obj" />.</exception>
<exception cref="T:System.InvalidOperationException">The type that declares the method is an open generic type.</exception>
<exception cref="T:System.Reflection.TargetParameterCountException">An incorrect number of arguments was provided.</exception>
<exception cref="T:System.NotSupportedException">The calling convention or signature is not supported.</exception>
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj, object? arg1);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj, object arg1) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object, arg1 As Object) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj * obj -> obj" Usage="methodInvoker.Invoke (obj, arg1)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj, System::Object ^ arg1);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="arg1" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<param name="arg1">The first argument for the invoked method.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc cref="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
<exception cref="T:System.ArgumentException">The arguments do not match the signature of the invoked method.</exception>
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj, Span<object?> arguments);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj, valuetype System.Span`1<object> arguments) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object,System.Span{System.Object})" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object, arguments As Span(Of Object)) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj * Span<obj> -> obj" Usage="methodInvoker.Invoke (obj, arguments)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj, Span<System::Object ^> arguments);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="arguments" Type="System.Span<System.Object>">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 2 })]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 2 })>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<param name="arguments">The arguments for the invoked method.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc cref="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
<exception cref="T:System.ArgumentException">The arguments do not match the signature of the invoked method.</exception>
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj, object? arg1, object? arg2);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj, object arg1, object arg2) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object,System.Object,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object, arg1 As Object, arg2 As Object) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj * obj * obj -> obj" Usage="methodInvoker.Invoke (obj, arg1, arg2)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj, System::Object ^ arg1, System::Object ^ arg2);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="arg1" Type="System.Object" />
<Parameter Name="arg2" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<param name="arg1">The first argument for the invoked method.</param>
<param name="arg2">The second argument for the invoked method.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc cref="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj, object? arg1, object? arg2, object? arg3);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj, object arg1, object arg2, object arg3) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object,System.Object,System.Object,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object, arg1 As Object, arg2 As Object, arg3 As Object) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj * obj * obj * obj -> obj" Usage="methodInvoker.Invoke (obj, arg1, arg2, arg3)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj, System::Object ^ arg1, System::Object ^ arg2, System::Object ^ arg3);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="arg1" Type="System.Object" />
<Parameter Name="arg2" Type="System.Object" />
<Parameter Name="arg3" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<param name="arg1">The first argument for the invoked method.</param>
<param name="arg2">The second argument for the invoked method.</param>
<param name="arg3">The third argument for the invoked method.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc cref="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public object? Invoke (object? obj, object? arg1, object? arg2, object? arg3, object? arg4);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object Invoke(object obj, object arg1, object arg2, object arg3, object arg4) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Reflection.MethodInvoker.Invoke(System.Object,System.Object,System.Object,System.Object,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function Invoke (obj As Object, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object) As Object" />
<MemberSignature Language="F#" Value="member this.Invoke : obj * obj * obj * obj * obj -> obj" Usage="methodInvoker.Invoke (obj, arg1, arg2, arg3, arg4)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ Invoke(System::Object ^ obj, System::Object ^ arg1, System::Object ^ arg2, System::Object ^ arg3, System::Object ^ arg4);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="arg1" Type="System.Object" />
<Parameter Name="arg2" Type="System.Object" />
<Parameter Name="arg3" Type="System.Object" />
<Parameter Name="arg4" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">The object on which to invoke the method. If the method is static, this argument is ignored.</param>
<param name="arg1">The first argument for the invoked method.</param>
<param name="arg2">The second argument for the invoked method.</param>
<param name="arg3">The third argument for the invoked method.</param>
<param name="arg4">The fourth argument for the invoked method.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc cref="M:System.Reflection.MethodInvoker.Invoke(System.Object)" />
</Docs>
</Member>
</Members>
</Type>