28 instantiations of CustomAttributeBuilder
Aspire.Hosting.RemoteHost.Tests (3)
AtsCapabilityScannerTests.cs (2)
443
new
CustomAttributeBuilder
(
459
new
CustomAttributeBuilder
(
AttributeDataReaderTests.cs (1)
315
return new
CustomAttributeBuilder
(
Aspire.Hosting.Tests (13)
DistributedApplicationBuilderTests.cs (2)
169
[new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [assemblyUserSecretsId])]);
199
[new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [assemblyUserSecretsId])]);
SecretsStoreTests.cs (2)
34
new("testhost"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
59
new("testhost"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
UserSecretsParameterDefaultTests.cs (9)
36
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
83
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
99
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
149
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
188
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
227
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
254
new("TestAssembly1"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId1])]);
256
new("TestAssembly2"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId2])]);
292
new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new
CustomAttributeBuilder
(s_userSecretsIdAttrCtor, [userSecretsId])]);
System.Private.Xml (6)
System\Xml\Serialization\Compilation.cs (1)
513
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 (2)
src\runtime\src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
89
new
CustomAttributeBuilder
(attributeUsageConstructorInfo,
System\Reflection\DispatchProxyGenerator.cs (1)
232
new
CustomAttributeBuilder
(attributeConstructor, new object[] { assemblyName });
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (4)
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! }));
134
var attributeUsage = new
CustomAttributeBuilder
(
25 references to CustomAttributeBuilder
Aspire.Hosting.RemoteHost.Tests (1)
AttributeDataReaderTests.cs (1)
313
private static
CustomAttributeBuilder
CreateCompatibleExportAttributeBuilder(Type exportAttributeType)
mscorlib (1)
src\runtime\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 (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
48
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (1)
43
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EnumBuilder.cs (1)
43
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EventBuilder.cs (1)
32
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldBuilder.cs (1)
27
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\GenericTypeParameterBuilder.cs (1)
21
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
66
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
180
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (1)
28
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\PropertyBuilder.cs (1)
32
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (1)
284
public void SetCustomAttribute(
CustomAttributeBuilder
customBuilder)
System\Reflection\Emit\AssemblyBuilder.cs (1)
20
public static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, IEnumerable<
CustomAttributeBuilder
> assemblyAttributes)
System.Reflection.DispatchProxy (2)
src\runtime\src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
88
CustomAttributeBuilder
customAttributeBuilder =
System\Reflection\DispatchProxyGenerator.cs (1)
231
CustomAttributeBuilder
customAttributeBuilder =
System.Reflection.Emit (2)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (2)
34
public PersistedAssemblyBuilder(AssemblyName name, Assembly coreAssembly, IEnumerable<
CustomAttributeBuilder
>? assemblyAttributes = null)
46
foreach (
CustomAttributeBuilder
assemblyAttribute in assemblyAttributes)
System.Reflection.Emit.ILGeneration (1)
src\runtime\artifacts\obj\System.Reflection.Emit.ILGeneration\Release\net11.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)
134
var
attributeUsage = new CustomAttributeBuilder(
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.cs (2)
305
public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname,
CustomAttributeBuilder
[]? attributes) =>
316
public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname,
CustomAttributeBuilder
[]? attributes, string? resourceFile)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (2)
31
internal RegexAssemblyCompiler(AssemblyName an,
CustomAttributeBuilder
[]? attribs, string? resourceFile)
39
_assembly = new PersistedAssemblyBuilder(an, typeof(object).Assembly, attribs is not null ? new List<
CustomAttributeBuilder
>(attribs) : null) ??