摘要: 1.判断类被某个属性应用 private bool CheckForServiceContractAttribute(Type type) { return type.IsDefined(typeof(ServiceContractAttribute), false); } 阅读全文