Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jerviscui committed Jun 4, 2024
1 parent a61a0a2 commit 17be304
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/.cr/personal/Options/StorageStreams.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Root Type="DevExpress.CodeRush.Platform.Options.StorageStreamOptions">
<Options Language="Neutral">
<Streams />
</Options>
</Root>
6 changes: 6 additions & 0 deletions src/.cr/team/Options/StorageStreams.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Root Type="DevExpress.CodeRush.Platform.Options.StorageStreamOptions">
<Options Language="Neutral">
<Streams />
</Options>
</Root>
18 changes: 17 additions & 1 deletion src/Tests/CodeAnalysisTest/OrganizeMembersTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ public string StrProp
static OrganizeMembersTest()
{
PublicStaticMehtod();
PrivateStaticMehtod("Hello");

var hello = "Hello";
PrivateStaticMehtod(hello);

PublicStaticProp = hello;
PrivateStaticProp = hello;
}

private OrganizeMembersTest()
Expand Down Expand Up @@ -128,6 +133,17 @@ protected OrganizeMembersTest(string paramName) : this()
// one line comment
private const int Const1 = 140;

private static string InnerProp;

public static string PublicStaticProp
{
get => InnerProp;
[MemberNotNull(nameof(InnerProp))]
set => InnerProp = value;
}

private static string PrivateStaticProp { get; set; }

/// <inheritdoc />
public Task TaskMethodAsync(CancellationToken cancellationToken)
{
Expand Down

0 comments on commit 17be304

Please sign in to comment.