Simple IController interface implementation
with backing fields. Members are marked as virtual
so it is possible to override them in subclasses.
Namespace:
MVCSharp.CoreAssembly: MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148
Syntax
| C# |
|---|
public class ControllerBase : IController |
| Visual Basic (Declaration) |
|---|
Public Class ControllerBase _ Implements IController |
| Visual C++ |
|---|
public ref class ControllerBase : IController |
Remarks
It is recommended to use the generic version of
this class - ControllerBase<(Of <(TTask, TView>)>) -
with strongly typed associations and, thus, higher type
safety.
Examples
ControllerBase class frees users from implementing
IController manually, yet allowing to override
IController members:
CopyC#
class MyController : ControllerBase { public void MyOperation() { // Do something } public override IView View { get { return base.View; } set { base.View = value; // Do view initialization } } }