public static bool IsFieldReference(this ReferenceKindType referenceKindType) { return(referenceKindType == ReferenceKindType.GetField || referenceKindType == ReferenceKindType.GetStatic || referenceKindType == ReferenceKindType.PutField || referenceKindType == ReferenceKindType.PutStatic); }
public static bool IsMethodReference(this ReferenceKindType referenceKindType) { return(referenceKindType == ReferenceKindType.InvokeReference || referenceKindType == ReferenceKindType.InvokeSpecial || referenceKindType == ReferenceKindType.InvokeStatic || referenceKindType == ReferenceKindType.InvokeVirtual || referenceKindType == ReferenceKindType.NewInvokeSpecial); }
public MethodHandleEntry(ReferenceKindType referenceKind, ReferenceEntry reference) { ReferenceKind = referenceKind; Reference = reference ?? throw new ArgumentNullException(nameof(reference)); }