Permalink
Fetching contributors…
Cannot retrieve contributors at this time
|
using System; |
|
using System.Collections.Generic; |
|
|
|
class Base {} |
|
class Derived : Base {} |
|
|
|
class C |
|
{ |
|
public static void Main() |
|
{ |
|
//<Snippet1> |
|
IEnumerable<Derived> d = new List<Derived>(); |
|
IEnumerable<Base> b = d; |
|
//</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.