24 lines
798 B
C#
24 lines
798 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNet.Razor.Chunks;
|
|
|
|
namespace Microsoft.AspNet.Mvc.Razor
|
|
{
|
|
public class ModelChunk : Chunk
|
|
{
|
|
/// <summary>
|
|
/// Represents the chunk for an @model statement.
|
|
/// </summary>
|
|
/// <param name="baseType">The base type of the view.</param>
|
|
/// <param name="modelType">The type of the view's Model.</param>
|
|
public ModelChunk(string baseType, string modelType)
|
|
{
|
|
BaseType = baseType;
|
|
ModelType = modelType;
|
|
}
|
|
|
|
public string BaseType { get; private set; }
|
|
public string ModelType { get; private set; }
|
|
}
|
|
} |