Posts Tagged ‘ List ’
CodeProjectLet’s say we have an XSD representing a library with a list of books and employees in it. Here is a sample Xml using this XSD: Tip 1 – Generating Code from XSD We’d like to have an object representation of this Xml. Thus, we’ll use the Xml Schema Definition tool to generate .Net C# code [ 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.