Jaa


ICase<T,R> Interface

Definition

The interface for cases evaluated by switch.

public interface ICase<in T,R>
type ICase<'T, 'R> = interface
Public Interface ICase(Of In T, R)

Type Parameters

T

The type of incoming value to case.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
R

The type of the object returned by selector.

Derived

Properties

Condition

The condition field of the case.

Selector

The selector that will be invoked if condition is met.

Applies to