Table of Contents

Interface IModelFactory<TModel>

Namespace
McMaster.Extensions.CommandLineUtils.SourceGeneration
Assembly
McMaster.Extensions.CommandLineUtils.dll

Strongly-typed factory for creating model instances without reflection.

public interface IModelFactory<TModel> : IModelFactory where TModel : class

Type Parameters

TModel

The model type to create.

Methods

Create()

Creates a new model instance.

TModel Create()

Returns

TModel

A new instance of the model.