two filters in List class find function
-
How can i use two filters in the following code person pp = obj.Find(delegate(person p) { return p.name == "abc"; }); because there should be one return statement in a single block. So how will i declare another filter to refine the record
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
How can i use two filters in the following code person pp = obj.Find(delegate(person p) { return p.name == "abc"; }); because there should be one return statement in a single block. So how will i declare another filter to refine the record
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
Sonia - you asked this question below. Don't repost questions, continue threads instead as this is just plain rude.
Deja View - the feeling that you've seen this post before.
-
How can i use two filters in the following code person pp = obj.Find(delegate(person p) { return p.name == "abc"; }); because there should be one return statement in a single block. So how will i declare another filter to refine the record
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
You can write several statements and use logical operators to return the value according to your filter requirements. Logical Operators in C#[^]
#region signature my articles #endregion
-
How can i use two filters in the following code person pp = obj.Find(delegate(person p) { return p.name == "abc"; }); because there should be one return statement in a single block. So how will i declare another filter to refine the record
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
person pp = obj.Find(delegate(person p) { return p.name == "abc" && BUY_A_BLOODY_C#_BOOK_FOR_THE_HUNDREDTH_TIME; });
Possibly a little too subtle. I still don't think she'll get it.
Deja View - the feeling that you've seen this post before.
-
Possibly a little too subtle. I still don't think she'll get it.
Deja View - the feeling that you've seen this post before.
-
J4amieC wrote:
Yes, I agree. I still have a lot to learn to achieve your level of sarcasm and wit
Oh I don't know. That post made me laugh. I even showed it to people.
Deja View - the feeling that you've seen this post before.