20 instantiations of CustomAttributeBuilder
Microsoft.AspNetCore.InternalTesting.Tests (4)
TestableAssembly.cs (4)
54var frameworkBuilder = new CustomAttributeBuilder( 59var fixtureBuilder = new CustomAttributeBuilder(fixtureConstructor, new[] { fixtureType }); 63var outputBuilder = new CustomAttributeBuilder(outputConstructor, new[] { "false", TFM, logDirectory }); 78var factBuilder = new CustomAttributeBuilder(factConstructor, Array.Empty<object>());
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
44var attribute = new CustomAttributeBuilder(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (1)
41var attribute = new CustomAttributeBuilder(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
Microsoft.Build.Tasks.UnitTests (2)
XslTransformation_Tests.cs (2)
1190asmBldr.SetCustomAttribute(new CustomAttributeBuilder(typeof(System.Security.SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes), Array.Empty<object>())); 1193asmBldr.SetCustomAttribute(new CustomAttributeBuilder(typeof(GeneratedCodeAttribute).GetConstructor(new Type[] { typeof(string), typeof(string) }), new object[] { "XsltCompiler", "2.0.0.0" }));
System.Private.Xml (6)
System\Xml\Serialization\Compilation.cs (1)
464assemblyBuilder.SetCustomAttribute(new CustomAttributeBuilder(AssemblyVersionAttribute_ctor, new object[] { assemblyVersion }));
System\Xml\Xsl\IlGen\XmlILModule.cs (5)
45asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 99asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 105asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Debuggable, new object[] { debuggingModes })); 154methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.StepThrough, Array.Empty<object>())); 155methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.NonUserCode, Array.Empty<object>()));
System.Reflection.DispatchProxy (2)
src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
89new CustomAttributeBuilder(attributeUsageConstructorInfo,
System\Reflection\DispatchProxyGenerator.cs (1)
237new CustomAttributeBuilder(attributeConstructor, new object[] { assemblyName });
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (4)
75assembly.SetCustomAttribute(new CustomAttributeBuilder(ignoresAccessChecksToAttributeConstructor, new object[] { typeof(IComImportAdapter).Assembly.GetName().Name! })); 79implementation.SetCustomAttribute(new CustomAttributeBuilder(typeof(DynamicInterfaceCastableImplementationAttribute).GetConstructor(Array.Empty<Type>())!, Array.Empty<object>())); 83assembly.SetCustomAttribute(new CustomAttributeBuilder(ignoresAccessChecksToAttributeConstructor, new object[] { iface.Assembly.GetName().Name! })); 134var attributeUsage = new CustomAttributeBuilder(
37 references to CustomAttributeBuilder
Microsoft.AspNetCore.InternalTesting.Tests (4)
TestableAssembly.cs (4)
54var frameworkBuilder = new CustomAttributeBuilder( 59var fixtureBuilder = new CustomAttributeBuilder(fixtureConstructor, new[] { fixtureType }); 63var outputBuilder = new CustomAttributeBuilder(outputConstructor, new[] { "false", TFM, logDirectory }); 78var factBuilder = new CustomAttributeBuilder(factConstructor, Array.Empty<object>());
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
44var attribute = new CustomAttributeBuilder(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (1)
41var attribute = new CustomAttributeBuilder(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
430[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.CustomAttributeBuilder))]
netstandard (1)
netstandard.cs (1)
1398[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.CustomAttributeBuilder))]
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
48public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (1)
43public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EnumBuilder.cs (1)
40public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EventBuilder.cs (1)
32public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldBuilder.cs (1)
27public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\GenericTypeParameterBuilder.cs (1)
18public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
66public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
180public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (1)
28public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\PropertyBuilder.cs (1)
32public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (1)
282public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (5)
32IEnumerable<CustomAttributeBuilder>? assemblyAttributes) 38IEnumerable<CustomAttributeBuilder>? assemblyAttributes, 92IEnumerable<CustomAttributeBuilder>? assemblyAttributes) 109foreach (CustomAttributeBuilder assemblyAttribute in assemblyAttributes) 166IEnumerable<CustomAttributeBuilder>? assemblyAttributes)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
26private readonly CustomAttributeBuilder? m_customBuilder; 36public CustAttr(CustomAttributeBuilder customBuilder) 585internal void SetGenParamCustomAttribute(CustomAttributeBuilder customBuilder)
System.Reflection.DispatchProxy (2)
src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
88CustomAttributeBuilder customAttributeBuilder =
System\Reflection\DispatchProxyGenerator.cs (1)
236CustomAttributeBuilder customAttributeBuilder =
System.Reflection.Emit (2)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (2)
34public PersistedAssemblyBuilder(AssemblyName name, Assembly coreAssembly, IEnumerable<CustomAttributeBuilder>? assemblyAttributes = null) 46foreach (CustomAttributeBuilder assemblyAttribute in assemblyAttributes)
System.Reflection.Emit.ILGeneration (1)
artifacts\obj\System.Reflection.Emit.ILGeneration\Debug\net9.0\System.Reflection.Emit.ILGeneration.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Emit.CustomAttributeBuilder))]
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
134var attributeUsage = new CustomAttributeBuilder(
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.cs (2)
226public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes) => 230public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes, string? resourceFile)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (2)
31internal RegexAssemblyCompiler(AssemblyName an, CustomAttributeBuilder[]? attribs, string? resourceFile) 39_assembly = new PersistedAssemblyBuilder(an, typeof(object).Assembly, attribs is not null ? new List<CustomAttributeBuilder>(attribs) : null) ??