0

I'm trying to use WhenAny (Reactive UI) for the first time.

When a Identifier =="xyz" and a IsMax field get changes, want to set a local value to true in the subscribe.

this.WhenAny(x => x.IsMax, x => x.Value).Subscribe(x => 
            {
                if( Identifier =="xyz")
                {  
                   isOk = true; 
                }
            });

Is there any other way to merge Identifier condition as well?

kenny
  • 21,522
  • 8
  • 49
  • 87
user3106005
  • 179
  • 3
  • 20
  • 1
    possible duplicate of [Reactive UI how to use WhenAny using two properties?](http://stackoverflow.com/questions/28804765/reactive-ui-how-to-use-whenany-using-two-properties) – Flagbug Mar 03 '15 at 20:30
  • you have `Identifier =="xyz'` Is that a typo in the question or in your actual code? – GitaarLAB Mar 06 '15 at 19:39
  • try .Where( x => x.Identifier == "xyz" ).Subscribe( ... – kenny Mar 10 '15 at 20:05

0 Answers0