// 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 System.Diagnostics;
using System.IO;
using System.Text.Encodings.Web;
using Microsoft.AspNet.Html;
namespace Microsoft.AspNet.Mvc.ViewFeatures.Buffer
{
///
/// Encapsulates a string or value.
///
public struct ViewBufferValue
{
///
/// Initializes a new instance of with a string value.
///
/// The value.
public ViewBufferValue(string value)
{
Value = value;
}
///
/// Initializes a new instance of with a value.
///
/// The .
public ViewBufferValue(IHtmlContent content)
{
Value = content;
}
///
/// Gets the value.
///
public object Value { get; }
}
}