Predicate delegate
ยศภูมิ มณีจันทร์ 650710986
1.What is Predicate delegate in C#?
using System;
public class Program
{
public static void Main()
{
Predicate<string> isUpper = IsUpperCase;
bool result1 = isUpper("PROGRAMING LANGUAGE");
bool result2 = isUpper("programing language");
Console.WriteLine(result1);
Console.WriteLine(result2);
}
public static bool IsUpperCase(string str)
{
return str.Equals(str.ToUpper());
}
}2.What is Predicate delegate in Java?
3.What is Predicate delegate in C/C++?
4.What is Predicate delegate in Python?
Different Predicate delegate in C# and other Language
Clip video for presentation
Slide for presentation
Reference
Last updated