Table of Contents

Interface IObjectFactory

Namespace
CMS.Core
Assembly
CMS.Core.dll

Object factory interface

public interface IObjectFactory
Extension Methods

Properties

CreatedType

Returns the type created by this factory

Type CreatedType { get; }

Property Value

Type

Singleton

Singleton instance of the created object type

object Singleton { get; }

Property Value

object

Methods

CanCreateObject(object)

Returns true if the factory is able to create the object of the given type

bool CanCreateObject(object parameter)

Parameters

parameter object

Returns

bool

CreateNewObject()

Creates and returns a new object

object CreateNewObject()

Returns

object