Skip to content

Commit 9380318

Browse files
committed
Allow NoReorderAttribute to be used for partial classes to indicate which part (or parts) should file layout should not be applied to.
See also: RSRP-494304 NoReorder attribute cannot be used with partial classes.
1 parent 0dea5ba commit 9380318

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Annotations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ public LanguageInjectionAttribute([NotNull] string injectedLanguage)
10721072
/// The attribute must be mentioned in your member reordering patterns.
10731073
/// </remarks>
10741074
[AttributeUsage(
1075-
AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct | AttributeTargets.Enum)]
1075+
AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = true)]
10761076
[Conditional("JETBRAINS_ANNOTATIONS")]
10771077
public sealed class NoReorderAttribute : Attribute { }
10781078

0 commit comments

Comments
 (0)