KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an interface IEntity public interface IEntity{ bool Validate(); } And I have a class Employee which implements this interface public class Employee : IEntity{ public bool Validate(){ return true; } } Now if I have the following code Employee emp1 = new Employee(); IEntity ent1 = (IEntity)emp1; // Is this a boxing conversion? If it is not a boxing conversion then how does the cast work?
Tags (comma-separated)
Save Edits
Cancel