判断类被某个属性应用

1.判断类被某个属性应用

        private bool CheckForServiceContractAttribute(Type type)
        {
            return type.IsDefined(typeof(ServiceContractAttribute), false);
        }
原文地址:https://www.cnblogs.com/stanley107/p/3164674.html