generics
what exactly does a generic extending from a class mean?
what does this exactly mean? public class Deck&l开发者_StackOverflow社区t;T extends Card> What does the T extends Card mean? Does this imply something about the class Card?[详细]
2023-04-11 09:07 分类:问答Error Message: "Cannot convert type 'string?' to 'string' "
I have this code: //Return nul开发者_如何学Gol if the extension doesn\'t have the value, returns the value if it does.[详细]
2023-04-11 07:09 分类:问答Generics and Marshal / UnMarshal. What am I missing here? PART #2 :-)
Following up on my earlier question : Generics and Marshal / UnMarshal. What am I missing here? In \"part #1\" (the link above) TOndrej provided a nice solution - that failed on XE2.[详细]
2023-04-11 06:35 分类:问答Can't send generic list as a parameter to WCF method
I have a WCF service, in which one of the method(or operation contract) uses a generic list of certai开发者_JS百科n type as a parameter, however when i try to consume this service, and call this parti[详细]
2023-04-11 04:46 分类:问答C# abstract class with abstract property of Generic List override
I am trying to use some base Abstract classes for a Transaction, Order and an OrderCollection.TransactionCog inherits Transaction and OrderCollection inherits List and OrderCogCollection inherits Orde[详细]
2023-04-11 04:39 分类:问答How to Update an item in a collection using and C#
Some times ago I asked a question here \"How to add an item in a collection using Linq and C#\" For Example I have same collection:[详细]
2023-04-11 04:32 分类:问答How to add an item in a collection using Linq and C#
I have a collection of objects. e.g. List<Subscription> subscription = new List<Subscription>[详细]
2023-04-11 04:29 分类:问答Scala: Can an abstract type be subtype of more than one other type?
Given the following Scala definitions abstract class C { type T1 <: { def m() : Int } type T2 <: { def n() : Int }[详细]
2023-04-11 02:52 分类:问答Should I be using generics to simplify my configuration provider class?
I am attempting to write a configuration manager that can supply configuration settings from different providers (e.g. settings files, environment variables, databases etc).[详细]
2023-04-11 02:23 分类:问答java generics - parameters cannot be applied to method
I can\'t seem to figure out why a method call I\'m trying to make doesn\'t work. I\'ve looked much around SO before asking this, and while there are (many) threads about similar problems, I couldn\'[详细]
2023-04-10 22:23 分类:问答