using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Tool
{
    public class CustomAttribute
    {
        public static string GetCustomAttribute<T>(Type type) where T:System.Attribute
        {
            return type.GetCustomAttributes(typeof(T), false)[0] as string;
        }
    }

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2021-10-26
  • 2022-12-23
  • 2021-10-30
  • 2021-09-20
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案