Files
Umbraco-CMS/src/Umbraco.Core/Models/PublishedContent/NoopPublishedModelFactory.cs

17 lines
503 B
C#
Raw Normal View History

2017-09-26 14:57:50 +02:00
using System;
using System.Collections.Generic;
namespace Umbraco.Core.Models.PublishedContent
{
/// <inheritdoc />
/// <summary>Represents a no-operation factory.</summary>
public class NoopPublishedModelFactory : IPublishedModelFactory
{
/// <inheritdoc />
public IPublishedElement CreateModel(IPublishedElement element) => element;
/// <inheritdoc />
public Dictionary<string, Type> ModelTypeMap { get; } = new Dictionary<string, Type>();
}
}