You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
438 B
C#
25 lines
438 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Study.DelegateSeries.Core
|
|
{
|
|
|
|
public class Demo
|
|
{
|
|
public int Square(int number)
|
|
{
|
|
return number * number;
|
|
}
|
|
|
|
public int UseDelegate()
|
|
{
|
|
IntegerDelegate intDelegate = delegate () { return 5; };
|
|
|
|
var total = Square(intDelegate());
|
|
|
|
return total;
|
|
}
|
|
}
|
|
}
|