Ejemplo n.º 1
0
        static public bool IsVoidType(this TypeReference item)
        {
            if (item.AreEquivolent(item.Module.TypeSystem.Void))
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        static public bool HasCustomAttributeOfType(this ICustomAttributeProvider item, TypeReference type)
        {
            if (item.CustomAttributes.Has(a => type.AreEquivolent(a.AttributeType)))
            {
                return(true);
            }

            return(false);
        }