Permalink
Fetching contributors…
Cannot retrieve contributors at this time
|
using System; |
|
|
|
class Base {} |
|
class Derived : Base {} |
|
|
|
class Example |
|
{ |
|
static void Main() |
|
{ |
|
//<Snippet1> |
|
Action<Base> b = (target) => { Console.WriteLine(target.GetType().Name); }; |
|
Action<Derived> d = b; |
|
d(new Derived()); |
|
//</Snippet1> |
|
} |
|
} |
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.