Skip to content

Instantly share code, notes, and snippets.

namespace <your_namespace>
{
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Routing;
using System;
public static class ViewDataExtension
{
/// <summary>
/// Get value at <see cref="ViewDataDictionary"/> by key.
@ykavalenka
ykavalenka / EnumExtension.cs
Last active June 21, 2018 11:44
Enum attribute get localization
namespace <your_namespace>
{
using System;
using System.Collections;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Threading;