Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace App
- {
- public class Test
- {
- public delegate int delegateTest(int x);
- public static int square(int x)
- {
- return x * x;
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Test.delegateTest del = Test.square;
- System.Console.WriteLine(del(20));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement