判斷類被某個屬性應用

1.判斷類被某個屬性應用blog

        private bool CheckForServiceContractAttribute(Type type)
        {
            return type.IsDefined(typeof(ServiceContractAttribute), false);
        }
相關文章
相關標籤/搜索