16 references to CustomAttributeBuilder
Microsoft.AspNetCore.InternalTesting.Tests (4)
TestableAssembly.cs (4)
54
var frameworkBuilder = new
CustomAttributeBuilder
(
59
var fixtureBuilder = new
CustomAttributeBuilder
(fixtureConstructor, new[] { fixtureType });
63
var outputBuilder = new
CustomAttributeBuilder
(outputConstructor, new[] { "false", TFM, logDirectory });
78
var factBuilder = new
CustomAttributeBuilder
(factConstructor, Array.Empty<object>());
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
44
var attribute = new
CustomAttributeBuilder
(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (1)
41
var attribute = new
CustomAttributeBuilder
(typeof(ProvideApplicationPartFactoryAttribute).GetConstructor(
System.Private.Xml (6)
System\Xml\Serialization\Compilation.cs (1)
466
assemblyBuilder.SetCustomAttribute(new
CustomAttributeBuilder
(AssemblyVersionAttribute_ctor, new object[] { assemblyVersion }));
System\Xml\Xsl\IlGen\XmlILModule.cs (5)
45
asmBldr.SetCustomAttribute(new
CustomAttributeBuilder
(XmlILConstructors.Transparent, Array.Empty<object>()));
99
asmBldr.SetCustomAttribute(new
CustomAttributeBuilder
(XmlILConstructors.Transparent, Array.Empty<object>()));
105
asmBldr.SetCustomAttribute(new
CustomAttributeBuilder
(XmlILConstructors.Debuggable, new object[] { debuggingModes }));
154
methBldr.SetCustomAttribute(new
CustomAttributeBuilder
(XmlILConstructors.StepThrough, Array.Empty<object>()));
155
methBldr.SetCustomAttribute(new
CustomAttributeBuilder
(XmlILConstructors.NonUserCode, Array.Empty<object>()));
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
237
new
CustomAttributeBuilder
(attributeConstructor, new object[] { assemblyName });
System.Runtime.InteropServices (3)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (3)
75
assembly.SetCustomAttribute(new
CustomAttributeBuilder
(ignoresAccessChecksToAttributeConstructor, new object[] { typeof(IComImportAdapter).Assembly.GetName().Name! }));
79
implementation.SetCustomAttribute(new
CustomAttributeBuilder
(typeof(DynamicInterfaceCastableImplementationAttribute).GetConstructor(Array.Empty<Type>())!, Array.Empty<object>()));
83
assembly.SetCustomAttribute(new
CustomAttributeBuilder
(ignoresAccessChecksToAttributeConstructor, new object[] { iface.Assembly.GetName().Name! }));