20 instantiations of KnownAttribute
ILAssembler (20)
PseudoCustomAttributes.KnownAttributes.cs (20)
147new(KnownAttributeKind.DllImport, InteropNamespace, "DllImportAttribute", CaTargets.MethodDef, 151new(KnownAttributeKind.ComImport, InteropNamespace, "ComImportAttribute", CaTargets.TypeDef), 153new(KnownAttributeKind.Serializable, "System", "SerializableAttribute", CaTargets.TypeDef), 155new(KnownAttributeKind.NonSerialized, "System", "NonSerializedAttribute", CaTargets.FieldDef), 157new(KnownAttributeKind.MethodImpl1, CompilerServicesNamespace, "MethodImplAttribute", CaTargets.MethodDef, 161new(KnownAttributeKind.MethodImpl2, CompilerServicesNamespace, "MethodImplAttribute", CaTargets.MethodDef, 166new(KnownAttributeKind.MethodImpl3, CompilerServicesNamespace, "MethodImplAttribute", CaTargets.MethodDef, 170new(KnownAttributeKind.MarshalAs1, InteropNamespace, "MarshalAsAttribute", MarshalTargets, 175new(KnownAttributeKind.MarshalAs2, InteropNamespace, "MarshalAsAttribute", MarshalTargets, 179new(KnownAttributeKind.PreserveSig, InteropNamespace, "PreserveSigAttribute", CaTargets.MethodDef), 181new(KnownAttributeKind.In, InteropNamespace, "InAttribute", InOutTargets), 183new(KnownAttributeKind.Out, InteropNamespace, "OutAttribute", InOutTargets), 185new(KnownAttributeKind.Optional, InteropNamespace, "OptionalAttribute", InOutTargets), 187new(KnownAttributeKind.StructLayout1, InteropNamespace, "StructLayoutAttribute", CaTargets.TypeDef, 192new(KnownAttributeKind.StructLayout2, InteropNamespace, "StructLayoutAttribute", CaTargets.TypeDef, 196new(KnownAttributeKind.FieldOffset, InteropNamespace, "FieldOffsetAttribute", CaTargets.FieldDef, 199new(KnownAttributeKind.SpecialName, CompilerServicesNamespace, "SpecialNameAttribute", SpecialNameTargets), 201new(KnownAttributeKind.WindowsRuntimeImport, InteropNamespace + ".WindowsRuntime", 204new(KnownAttributeKind.DynamicSecurityMethod, "System.Security", "DynamicSecurityMethodAttribute", 207new(KnownAttributeKind.SuppressUnmanagedCodeSecurity, "System.Security", "SuppressUnmanagedCodeSecurityAttribute",
8 references to KnownAttribute
ILAssembler (8)
PseudoCustomAttributes.Application.cs (1)
13private static bool Apply(LoweringContext context, KnownAttribute known)
PseudoCustomAttributes.cs (1)
54KnownAttribute? known = TryFindKnownAttribute(attribute.Constructor, @namespace, name);
PseudoCustomAttributes.Decoding.cs (2)
78KnownAttribute known, 127KnownAttribute known,
PseudoCustomAttributes.Identity.cs (3)
114private static KnownAttribute? TryFindKnownAttribute(EntityRegistry.EntityBase constructor, string @namespace, string name) 116foreach (KnownAttribute candidate in s_knownAttributes) 140private static unsafe bool SignatureMatches(EntityRegistry.EntityBase constructor, KnownAttribute candidate)
PseudoCustomAttributes.KnownAttributes.cs (1)
145private static readonly KnownAttribute[] s_knownAttributes =