8 overrides of TryFindCustomAttribute
System.Reflection.MetadataLoadContext (8)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
75
internal sealed override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (1)
35
internal sealed override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => GenericParameter.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
111
internal sealed override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _genericTypeDefinition.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoExceptionType.cs (1)
37
internal sealed override CustomAttributeData
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!;
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
177
internal sealed override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
56
internal sealed override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
163
internal override CustomAttributeData?
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _unmodifiedType.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoStubType.cs (1)
50
internal sealed override CustomAttributeData
TryFindCustomAttribute
(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!;
4 references to TryFindCustomAttribute
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
111
internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _genericTypeDefinition.
TryFindCustomAttribute
(ns, name);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
132
CustomAttributeData? cad =
TryFindCustomAttribute
(Utf8Constants.SystemRuntimeInteropServices, Utf8Constants.GuidAttribute);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
163
internal override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _unmodifiedType.
TryFindCustomAttribute
(ns, name);
System\Reflection\TypeLoading\Types\RoType.cs (1)
302
CustomAttributeData? attribute = type.
TryFindCustomAttribute
(Utf8Constants.SystemReflection, Utf8Constants.DefaultMemberAttribute);