Skip to content

Commit ca5a5ed

Browse files
authored
Minor code cleanup (#18773)
Fixes #18733
1 parent 5580736 commit ca5a5ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsModifiers/CS/csrefKeywordsModifiers.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ interface I
3636
{
3737
void M();
3838
}
39+
3940
abstract class C : I
4041
{
4142
public abstract void M();
@@ -95,6 +96,7 @@ public class T1
9596
public static int publicInt;
9697
internal static int internalInt;
9798
private static int privateInt = 0;
99+
98100
static T1()
99101
{
100102
// T1 can access public or internal members
@@ -210,8 +212,8 @@ static void Main()
210212
//<snippet7>
211213
public class SampleEventArgs
212214
{
213-
public SampleEventArgs(string s) { Text = s; }
214-
public String Text { get; } // readonly
215+
public SampleEventArgs(string text) { Text = text; }
216+
public string Text { get; } // readonly
215217
}
216218

217219
public class Publisher

0 commit comments

Comments
 (0)