Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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.
The type of the object returned by selector.
The condition field of the case.
The selector that will be invoked if condition is met.