@@ -9,16 +9,16 @@ namespace Foundation
99 /// <typeparam name="TArgument"></typeparam>
1010 public sealed class ArgumentIsSelection < TArgument > where TArgument : class
1111 {
12- private readonly TArgument argument ;
13- private bool selected ;
12+ private readonly TArgument _argument ;
13+ private bool _selected ;
1414
1515 /// <summary>
1616 ///
1717 /// </summary>
1818 /// <param name="argument"></param>
1919 public ArgumentIsSelection ( TArgument argument )
2020 {
21- this . argument = argument ;
21+ this . _argument = argument ;
2222 }
2323
2424 /// <summary>
@@ -31,11 +31,11 @@ public ArgumentIsSelection<TArgument> IfArgumentIs<TArgumentAs>(Action<TArgument
3131 {
3232 Assert . IsNotNull ( action ) ;
3333
34- if ( ! selected )
34+ if ( ! _selected )
3535 {
36- var argumentAs = argument as TArgumentAs ;
37- selected = argumentAs != null ;
38- if ( selected )
36+ var argumentAs = _argument as TArgumentAs ;
37+ _selected = argumentAs != null ;
38+ if ( _selected )
3939 {
4040 action ( argumentAs ) ;
4141 }
@@ -53,10 +53,10 @@ public ArgumentIsSelection<TArgument> IfArgumentIsNull(Action action)
5353 {
5454 Assert . IsNotNull ( action ) ;
5555
56- if ( ! selected )
56+ if ( ! _selected )
5757 {
58- selected = argument == null ;
59- if ( selected )
58+ _selected = _argument == null ;
59+ if ( _selected )
6060 {
6161 action ( ) ;
6262 }
@@ -75,10 +75,10 @@ public ArgumentIsSelection<TArgument> If(Func<bool> condition, Action action)
7575 {
7676 Assert . IsNotNull ( action ) ;
7777
78- if ( ! selected )
78+ if ( ! _selected )
7979 {
80- selected = condition ( ) ;
81- if ( selected )
80+ _selected = condition ( ) ;
81+ if ( _selected )
8282 {
8383 action ( ) ;
8484 }
@@ -95,7 +95,7 @@ public void Else(Action action)
9595 {
9696 Assert . IsNotNull ( action ) ;
9797
98- if ( ! selected )
98+ if ( ! _selected )
9999 action ( ) ;
100100 }
101101 }
0 commit comments