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.

Istead of implementing this interface manually you might better use generic base view classes such as WebFormView<(Of <(T>)>) or WinFormView<(Of <(T>)>).

Namespace:  MVCSharp.Core.Views
Assembly:  MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148


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

Specifies the expected type of the associated controller. Must be a subtype of IController


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.

See Also