Skip to content

Instantly share code, notes, and snippets.

View soyprofesor's full-sized avatar

Shokhzod Azamatov soyprofesor

View GitHub Profile
@relyky
relyky / DisplayName_For_Property.cs
Last active August 14, 2024 11:31
C#, get property Display Name of DisplayAttribute, DataAnnotations, MemberExpression
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Linq.Expressions;
/// <summary>
/// global type handling helper
/// </summary>
public static class GT<TModel>
{