Created
May 16, 2017 20:23
-
-
Save alastairs/9e0fac2e30afe7860e7371b17b0d032b to your computer and use it in GitHub Desktop.
Copied from https://github.com/aspnet/Mvc/blob/760c8f38678118734399c58c2dac981ea6e47046/src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Metadata/IDisplayMetadataProvider.cs for the sole purpose of embedding into a Medium post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. | |
namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata | |
{ | |
/// <summary> | |
/// Provides <see cref="DisplayMetadata"/> for a <see cref="DefaultModelMetadata"/>. | |
/// </summary> | |
public interface IDisplayMetadataProvider : IMetadataDetailsProvider | |
{ | |
/// <summary> | |
/// Sets the values for properties of <see cref="DisplayMetadataProviderContext.DisplayMetadata"/>. | |
/// </summary> | |
/// <param name="context">The <see cref="DisplayMetadataProviderContext"/>.</param> | |
void CreateDisplayMetadata(DisplayMetadataProviderContext context); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment