Posts Tagged ‘ collection ’
CodeProjectYou are using the PropertyGrid control to allow the user to edit the properties of an object at run-time from the UI. This works great and is in fact very reliable since this is the same control used by Visual Studio to display the properties of controls. Now that you are letting the user update the [ READ MORE ]
CodeProjectLet’s say you have a class A that inherits from class P. It’s clear that you can create a new object of type A and cast it to type P. Now, create a List<A> object and add to it object a1. Then try to cast it to List<P>. You would expect it to work, but it doesn’t since C# doesn’t support variance for [ READ MORE ]
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 10 other followers
Get every new post delivered to your Inbox.