Skip to content

Instantly share code, notes, and snippets.

Avatar

Yauhen Kavalenka ykavalenka

View GitHub Profile
View ViewDataExtension.cs
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 Jun 21, 2018
Enum attribute get localization
View EnumExtension.cs
namespace <your_namespace>
{
using System;
using System.Collections;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Threading;