I have been trying to determine the type of a field in a class. I\'ve seen all the introspection methods but haven\'t quite figured out how to do it. This is going to be used to generate xml/json from
I am trying to get a WCF service to return a List that contains instances of classes that inherit from A but am getting \"The underlying connection unexpectedly closed\" when the service returns the l
I have 2 objects Project and License. They both inherit from the object Entity (abstract class). Now I have an extension method \"GetNewId\" that contains logic to get the next id in a list of entiti
This question already has answers here: Closed 13 years ago. Possible Duplicate: What is cool about generics, why use them?
I\'ve run into Java code similar to the following: public interface BaseArg { } public class DerivedArg implements BaseArg {
Can anyone tell why visiting th开发者_C百科e below link might lead IE7 to say they can\'t load the page?
I am just starting to get to grips with generics and am (ab)using them to refactor a fairly complex section of my code (I\'ve only been using c# for a little while but am fairly experienced in other l
Is it possible to constrain a genericised method to accept only specific types of 开发者_运维问答struct?
I\'m trying to figure out how to structure a program using Java\'s generics, and wondering if I am doing something fundamentally wrong or just missing a simple bug in my code.
It was suggested in this question, that I could cast a generic collection upward to a collection of objects with .Cast<object>. After reading up a bit on .Cast<>, I still can\'t get it a g