c# Programming Glossary: subtype
Covariance and contravariance in programming languages http://stackoverflow.com/questions/1163465/covariance-and-contravariance-in-programming-languages of type T for some T . List would be covariant if S is a subtype of T iff List S is a subtype of List T Where I'm using the mathematical.. would be covariant if S is a subtype of T iff List S is a subtype of List T Where I'm using the mathematical definition iff to..
Why there is no something like IMonad<T> in upcoming .NET 4.0 http://stackoverflow.com/questions/1709897/why-there-is-no-something-like-imonadt-in-upcoming-net-4-0 you need to be able to reference the specific implementing subtype m a or ISpecificMonad a within the definition of the general..
Should IEquatable<T>, IComparable<T> be implemented on non-sealed classes? http://stackoverflow.com/questions/1868316/should-iequatablet-icomparablet-be-implemented-on-non-sealed-classes checks to a virtual method on X thereby allowing a subtype to override the equality comparison. This then brings up a more.. may or may not be X though they must of course be X or a subtype . What do you guys think Should IEquatable T and IComparable.. IEquatable T since the field could potentially store subtypes of T and I doubt most implementations of IEquatable T are designed..
Why a C# struct cannot be inherited? [duplicate] http://stackoverflow.com/questions/2310103/why-a-c-sharp-struct-cannot-be-inherited is affected at a low level if you allowed structs to have subtypes with more members. Anything storing that struct type would.. would take up a variable amount of memory based on which subtype it ended up containing which would be an allocation nightmare...
When to use abstract classes? http://stackoverflow.com/questions/2570814/when-to-use-abstract-classes
How to pass a single object[] to a params object[] http://stackoverflow.com/questions/36350/how-to-pass-a-single-object-to-a-params-object Foo object new object object 1 object 2 As an array is a subtype of object this all works out. Bit of an odd semantic though..
Why use generic constraints in C# http://stackoverflow.com/questions/4073852/why-use-generic-constraints-in-c-sharp MyProperty is whatever T is even if that is a specific subtype of ISomething . Consider a concrete implementation of ISomething..
DataTable to JSON http://stackoverflow.com/questions/451460/datatable-to-json Schema does solve the problem by making it possible to subtype a string as a date literal but this is still work in progress..
Early and late binding http://stackoverflow.com/questions/484214/early-and-late-binding bind to at execution time and checks for type safety. So subtype polymorphism uses late binding. Calling methods using reflection..
add values to enum http://stackoverflow.com/questions/55375/add-values-to-enum should be legal to supply a MyExtEnum value because it's a subtype but now what are you going to do when it turns out the value..
Extract image from PDF using itextsharp http://stackoverflow.com/questions/5945244/extract-image-from-pdf-using-itextsharp PDFObj iTextSharp.text.pdf.PdfObject subtype PDFStremObj.Get iTextSharp.text.pdf.PdfName.SUBTYPE if subtype.. PDFStremObj.Get iTextSharp.text.pdf.PdfName.SUBTYPE if subtype null subtype.ToString iTextSharp.text.pdf.PdfName.IMAGE.ToString.. iTextSharp.text.pdf.PdfName.SUBTYPE if subtype null subtype.ToString iTextSharp.text.pdf.PdfName.IMAGE.ToString byte..
protobuf-net inheritance http://stackoverflow.com/questions/6247513/protobuf-net-inheritance deserialize class hierarchy without a need to specify each subtype in the base class. Is this implemented yet We have a plugin.. net short of using ProtoInclude attribute which requires a subtype to be specified. How would I go about implementing inheritance.. with protobuf net like that if I don't know what the subtypes are c# protocol buffers protobuf net share improve this..
Expressing recursion in LINQ http://stackoverflow.com/questions/732281/expressing-recursion-in-linq but rather Elements and Nodes . XElement is a subtype of XNode. XNode's include things like HTML tags but also HTML..
How to check if a class inherits another class without instantiating it? [duplicate] http://stackoverflow.com/questions/8699053/how-to-check-if-a-class-inherits-another-class-without-instantiating-it has an answer here In C# how do I check if a type is a subtype OR the type of an object 3 answers Suppose I have a..
|