Share via


MethodType.DropParameterTypes(Int32, Int32) Method

Definition

Finds or creates a method type with some parameter types omitted.

[Android.Runtime.Register("dropParameterTypes", "(II)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodType? DropParameterTypes (int start, int end);
[<Android.Runtime.Register("dropParameterTypes", "(II)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
member this.DropParameterTypes : int * int -> Java.Lang.Invoke.MethodType

Parameters

start
Int32

the index (zero-based) of the first parameter type to remove

end
Int32

the index (greater than start) of the first parameter type after not to remove

Returns

the same type, except with the selected parameter(s) removed

Attributes

Remarks

Finds or creates a method type with some parameter types omitted. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType.

Java documentation for java.lang.invoke.MethodType.dropParameterTypes(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to