static public bool IsVoidType(this TypeReference item) { if (item.AreEquivolent(item.Module.TypeSystem.Void)) { return(true); } return(false); }
static public bool HasCustomAttributeOfType(this ICustomAttributeProvider item, TypeReference type) { if (item.CustomAttributes.Has(a => type.AreEquivolent(a.AttributeType))) { return(true); } return(false); }