Sample generic method with two arguments.

Namespace: SampleClassLibrary
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Function Method1(Of  _ 
T)( _ 
ByVal x As Integer(), _ 
ByVal y As String
) As Boolean
This language is not supported or no code example is available.
public bool Method1<T>( 
int[] x
string y 
)
This language is not supported or no code example is available.
member Method1<'T> :  
x:int[] * 
y:string 
-> bool
This language is not supported or no code example is available.
generic<typename T> 
public:  
bool Method1( 
array< int >^ x
String^ y 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Type Parameters

T

The type used in this generic method.

Parameters

x
Type: int[]

The first parameter.

y
Type: string

The second parameter.

Return Value

Type: bool

true if no error occurs; false otherwise.

Exception type Condition

NestedException

If something horrible happens.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library