|
1 | | -// ReSharper disable UnusedMember.Global |
2 | | - |
3 | | -[module: System.Runtime.CompilerServices.SkipLocalsInit] |
4 | | - |
5 | | -#if !NET8_0_OR_GREATER |
6 | | - |
7 | | -// ReSharper disable once CheckNamespace |
8 | | -namespace System.Runtime.CompilerServices |
9 | | -{ |
10 | | - /// <summary></summary> |
11 | | - /// <param name="builderType">The type of the builder to use to construct the collection.</param> |
12 | | - /// <param name="methodName">The name of the method on the builder to use to construct the collection.</param> |
13 | | - [AttributeUsage( |
14 | | - AttributeTargets.Class |
15 | | - | AttributeTargets.Struct |
16 | | - | AttributeTargets.Interface, |
17 | | - Inherited = false)] |
18 | | - internal sealed class CollectionBuilderAttribute(Type builderType, string methodName) : Attribute |
19 | | - { |
20 | | - /// <summary> |
21 | | - /// Gets the type of the builder to use to construct the collection. |
22 | | - /// </summary> |
23 | | - public Type BuilderType => builderType; |
24 | | - |
25 | | - /// <summary> |
26 | | - /// Gets the name of the method on the builder to use to construct the collection. |
27 | | - /// </summary> |
28 | | - public string MethodName => methodName; |
29 | | - } |
30 | | -} |
31 | | - |
32 | | -#endif |
| 1 | +// ReSharper disable UnusedMember.Global |
| 2 | + |
| 3 | +[module: System.Runtime.CompilerServices.SkipLocalsInit] |
| 4 | + |
| 5 | +#if !NET8_0_OR_GREATER |
| 6 | + |
| 7 | +// ReSharper disable once CheckNamespace |
| 8 | +namespace System.Runtime.CompilerServices |
| 9 | +{ |
| 10 | + /// <summary></summary> |
| 11 | + /// <param name="builderType">The type of the builder to use to construct the collection.</param> |
| 12 | + /// <param name="methodName">The name of the method on the builder to use to construct the collection.</param> |
| 13 | + [AttributeUsage( |
| 14 | + AttributeTargets.Class |
| 15 | + | AttributeTargets.Struct |
| 16 | + | AttributeTargets.Interface, |
| 17 | + Inherited = false)] |
| 18 | + internal sealed class CollectionBuilderAttribute(Type builderType, string methodName) : Attribute |
| 19 | + { |
| 20 | + /// <summary> |
| 21 | + /// Gets the type of the builder to use to construct the collection. |
| 22 | + /// </summary> |
| 23 | + public Type BuilderType => builderType; |
| 24 | + |
| 25 | + /// <summary> |
| 26 | + /// Gets the name of the method on the builder to use to construct the collection. |
| 27 | + /// </summary> |
| 28 | + public string MethodName => methodName; |
| 29 | + } |
| 30 | +} |
| 31 | + |
| 32 | +#endif |
0 commit comments