ICase<T,R> Interface
Definition
Important
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)
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. |