Verifying.razor.cs 663 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Threading.Tasks;
  7. using Microsoft.AspNetCore.Components;
  8. namespace HyperCube.Pages
  9. {
  10. public partial class Verifying : ComponentBase
  11. {
  12. private int counter = 1;
  13. private static string GetDisplayName(Enum enumValue)
  14. {
  15. return enumValue.GetType()
  16. .GetMember(enumValue.ToString())
  17. .First()
  18. .GetCustomAttribute<DisplayAttribute>()
  19. .GetName();
  20. }
  21. }
  22. }