Answers for "predicate c#"

C#
0

predicate c#

static bool IsUpperCase(string str)
{
    return str.Equals(str.ToUpper());
}

static void Main(string[] args)
{
    Predicate<string> isUpper = IsUpperCase;

    bool result = isUpper("hello world!!");

    Console.WriteLine(result);
}
Posted by: Guest on November-06-2020
0

predicate c#

static void Main(string[] args)
{
    Predicate<string> isUpper = delegate(string s) { return s.Equals(s.ToUpper());};
    bool result = isUpper("hello world!!");
}
Posted by: Guest on November-06-2020
0

predicate c#

static void Main(string[] args)
{
    Predicate<string> isUpper = s => s.Equals(s.ToUpper());
    bool result = isUpper("hello world!!");
}
Posted by: Guest on November-06-2020

Code answers related to "predicate c#"

C# Answers by Framework

Browse Popular Code Answers by Language