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