KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a List<InputField> but I need a List<IDataField> Is there a way to cast this in c#? Or use Linq to get same result? I have two classes that implement the same interface: interface IDataField { } class InputField : IDataField { } class PurchaseField : IDataField { } This List comes from a Linq-to-Sql query: List<InputField> list = (from i .... select i).ToList();
Tags (comma-separated)
Save Edits
Cancel