Question : cast list<type> to list<interface>

hi

i have a class and interface

public class Person : IPerson
{
public int Id{get;set;}
public string Name{get;set;}
}

public interface IPerson
{
int Id{get;set;}
}


i want to cast List<Person> to List<IPerson>  - how do i do this please?

Answer : cast list<type> to list<interface>

Hi,

One of these should help you out for what you are looking for

a:link {
text-decoration:none;
border-bottom:1px solid black;
}
a:visited {
border-bottom:1px solid grey;
}
a:hover {
border-bottom:1px solid red;
}

Or;

<html
 <head>
  <style>
   a:hover{color:#f00;}
   a{text-decoration:underline;}
   span.link{color:#000;}
  </style>
 </head>
 <body>
  <a href="#"><span class=link>Click Me</span></a>
 </body>
</html>

M@
Random Solutions  
 
programming4us programming4us