Skip to content

Instantly share code, notes, and snippets.

View hatuan's full-sized avatar

Tuan Hoang Anh hatuan

  • Viet Nam - Ha Noi
View GitHub Profile
@dkellycollins
dkellycollins / BaseForm.cs
Last active August 6, 2024 06:54
Example of how you might use Ninject within a WinForms application.
/// <summary>
/// Non-Generic BaseForm. Provides functionality for retrieving the controller.
/// </summary>
public class BaseForm : Form
{
/// <summary>
/// Gets the controller for the given type.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>