Generic extension of the IView interface.
Has a strongly typed generic association to the controller.
Therefore no typecasting is required when accessing the
associated controller.
Namespace:
MVCSharp.Core.ViewsIstead of implementing this interface manually you might better use generic base view classes such as WebFormView<(Of <(T>)>) or WinFormView<(Of <(T>)>).
Assembly: MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148
Syntax
| C# |
|---|
public interface IView<T> : IView where T : IController |
| Visual Basic (Declaration) |
|---|
Public Interface IView(Of T As IController) _ Implements IView |
| Visual C++ |
|---|
generic<typename T> where T : IController public interface class IView : IView |
Type Parameters
- T
- Specifies the expected type of the associated controller. Must be a subtype of IController
Remarks
The framework knows nothing about the generic types
and deals only their non-generic versions. Generic types serve
only for user convenience: to provide type-safety and reduce
the amount of typecasts.