Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent 'error IDE0036: Modifiers are not ordered' #710

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.Collections;

public class ControlPropertiesCollection : NamedItemsCollection<ControlProperty>
{
private readonly static Func<ControlProperty, string> _keySelector = v => v.Name;
private static readonly Func<ControlProperty, string> _keySelector = v => v.Name;

public ControlPropertiesCollection() : base(_keySelector)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.Collections;

public class CustomPropertiesCollection : NamedItemsCollection<CustomProperty>
{
private readonly static Func<CustomProperty, string> _keySelector = v => v.Name;
private static readonly Func<CustomProperty, string> _keySelector = v => v.Name;

public CustomPropertiesCollection() : base(_keySelector)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.Collections;

public class CustomPropertyParametersCollection : NamedItemsCollection<CustomPropertyParameter>
{
private readonly static Func<CustomPropertyParameter, string> _keySelector = v => v.Name;
private static readonly Func<CustomPropertyParameter, string> _keySelector = v => v.Name;

public CustomPropertyParametersCollection() : base(_keySelector)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Persistence/Extensions/YamlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.Extensions;

public static class YamlExtensions
{
static internal readonly char[] LineTerminators = new char[] { '\r', '\n', '\x85', '\x2028', '\x2029' };
internal static readonly char[] LineTerminators = new char[] { '\r', '\n', '\x85', '\x2028', '\x2029' };

public static ScalarStyle DetermineScalarStyleForProperty(this string? property)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Persistence/PaYaml/Models/NamedObjectMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models;
public class NamedObjectMapping<TValue> : NamedObjectMappingBase<string, TValue, NamedObject<TValue>>, INamedObjectCollection<TValue>
where TValue : notnull
{
private readonly static StringComparer DefaultComparer = StringComparer.Ordinal;
private static readonly StringComparer DefaultComparer = StringComparer.Ordinal;

public NamedObjectMapping()
: this(DefaultComparer)
Expand Down
2 changes: 1 addition & 1 deletion src/Persistence/PaYaml/Models/NamedObjectSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models;
public class NamedObjectSequence<TValue> : NamedObjectSequenceBase<string, TValue, NamedObject<TValue>>, INamedObjectCollection<TValue>
where TValue : notnull
{
private readonly static StringComparer DefaultComparer = StringComparer.Ordinal;
private static readonly StringComparer DefaultComparer = StringComparer.Ordinal;

public NamedObjectSequence()
: this(DefaultComparer)
Expand Down
Loading