Skip to content
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
This repository was archived by the owner on Aug 18, 2026. It is now read-only.

Mistake in the file layout. #21

Description

@Tesmont

This is the result of code clean up for the file layout's extension.

public class TestResharperLayout
{
    public const int PublicConst = 5;

    public readonly int PublicReadOnlyField;

    public int PublicField;

    private const int PrivateConst = 5;

    private readonly int privateReadOnlyField;

    private int privateField;
}

There is an error

SA1202 : CSharp.Ordering : All private fields must be placed after all public fields.

for private const int PrivateConst = 5; It has to be after public int PublicField;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions