get invoice view
This commit is contained in:
21
Shared/ExMethod.cs
Normal file
21
Shared/ExMethod.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared
|
||||
{
|
||||
public static class ExMethod
|
||||
{
|
||||
public static string GetEnumDisplayName(this Enum enumType)
|
||||
{
|
||||
return enumType.GetType().GetMember(enumType.ToString())
|
||||
.First()
|
||||
.GetCustomAttribute<DisplayAttribute>()
|
||||
.Name;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user