using System;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Reflection;
class A
{
static void Main()
{
var x = Delegate.CreateDelegate(typeof(Comparison<string>), typeof(string), "Compare"); // OK
var y = Delegate.CreateDelegate(typeof(Comparer<string>), typeof(string), "Compare"); // System.ArgumentException: Type must derive from Delegate.
var a = Enum.Parse(typeof(EventAttributes), "None"); // OK
var b = Enum.Parse(typeof(EventAttribute), "None"); // System.ArgumentException: Type provided must be an Enum.
}
}