Skip to content

Commit 63dad66

Browse files
authored
Fixes #28201 (#28421)
Updated public variable name to comply with C# naming standards
1 parent deb004a commit 63dad66

File tree

1 file changed

+3
-3
lines changed
  • samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideGenerics/CS

1 file changed

+3
-3
lines changed

samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideGenerics/CS/Generics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,11 @@ class WrapDelegates2
564564
class Stack<T>
565565
{
566566
public class StackEventArgs : System.EventArgs { }
567-
public event StackEventHandler<Stack<T>, StackEventArgs> stackEvent;
567+
public event StackEventHandler<Stack<T>, StackEventArgs> StackEvent;
568568

569569
protected virtual void OnStackChanged(StackEventArgs a)
570570
{
571-
stackEvent(this, a);
571+
StackEvent(this, a);
572572
}
573573
}
574574

@@ -581,7 +581,7 @@ public static void Test()
581581
{
582582
Stack<double> s = new Stack<double>();
583583
SampleClass o = new SampleClass();
584-
s.stackEvent += o.HandleStackChange;
584+
s.StackEvent += o.HandleStackChange;
585585
}
586586
//</Snippet40>
587587
}

0 commit comments

Comments
 (0)