Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# predicate

Predicate<string> isUpper = delegate (string s) { return s.Equals(s.ToUpper()); };
bool result = isUpper("hello world!!");

Console.WriteLine("Predicate Delegate "+result);
 
PREVIOUS NEXT
Tagged: #predicate
ADD COMMENT
Topic
Name
3+4 =