No announcements
Found 1119078 threads
-
6 Votes
Covariance with interfaces
@Mike Danes After re-reading the spec, I believe you're right about the type hierarchy not being affected - this is done thanks to ...Answered | 22 Replies | 4029 Views | Created by Markos101 - Monday, March 10, 2014 11:21 AM | Last reply by Diogo Castro - Thursday, March 13, 2014 1:23 PM -
2 Votes
Covariance vs Controvariance
Hi, By definition , Covariance and Contravariance enables implicit reference conversion for array types, delegate types and generric type arguments.Answered | 3 Replies | 2865 Views | Created by alavudeen batcha - Sunday, May 20, 2012 2:10 PM | Last reply by Adavesh - Tuesday, May 29, 2012 5:35 AM -
0 Votes
Covariance Maybe
MyList<Cat> lstCats = new MyList<Cat>(); lstCats.Add(new Cat()); lstCats.Add(new Cat()); lstCats.Add(new ...Answered | 4 Replies | 3160 Views | Created by shaggygi - Saturday, October 8, 2011 12:46 PM | Last reply by Leo Liu - MSFT - Thursday, October 13, 2011 10:10 AM -
1 Votes
ToListAsync(), Task and covariance?
LINQ has method .ToList() which returns list that is covariant to IEnumerable<T>.Answered | 2 Replies | 4158 Views | Created by Tuomas Hietanen - Wednesday, January 30, 2013 8:16 AM | Last reply by Tuomas Hietanen - Tuesday, February 5, 2013 9:12 AM -
0 Votes
Could we have IDbContext<> covariant as in IQueryable<>
Ant, IDbSet cannot be covariant for the same reason that ICollection is not—it contains methods, such as Add, that pass arguments of type ...Answered | 2 Replies | 5542 Views | Created by Anthony Johnston - Friday, March 11, 2011 10:16 AM | Last reply by Anthony Johnston - Monday, March 14, 2011 2:28 PM -
0 Votes
About covariance?
Covariance preserves assignment compatibility and contravariance reverses it.Answered | 2 Replies | 45 Views | Created by Anonymous - Tuesday, February 5, 2019 7:12 PM | Last reply by Anonymous - Saturday, February 16, 2019 8:35 AM -
0 Votes
MSVC BUG virtual base with covariance
Fingers crossed you'll hear something back about it.Answered | 5 Replies | 546 Views | Created by f90d83a8 - Wednesday, January 20, 2016 12:04 PM | Last reply by David Lowndes - Thursday, January 21, 2016 3:29 PM -
2 Votes
Covariance and Contravariance
The general idea of covariance and contrvariance is that method return parameters can be covariant and it's input parameters contrvariant.Answered | 5 Replies | 715 Views | Created by NANDAKUMAR T - Friday, November 21, 2014 8:59 AM | Last reply by NANDAKUMAR T - Friday, November 21, 2014 10:18 AM -
0 Votes
Covariance And Contravariance
User-986267747 posted Hi ManyTitles, Hi all, is the concept of Covariance the same as Upcasting and the concept of Contravariance the ...Answered | 2 Replies | 36 Views | Created by Anonymous - Tuesday, December 22, 2015 5:36 PM | Last reply by Anonymous - Wednesday, December 23, 2015 6:05 AM -
0 Votes
what is Covariance and Contravariance ?
User2103319870 posted Hi, Check the below link Covariance and contravariance real world example Covariance ...Answered | 3 Replies | 36 Views | Created by Anonymous - Monday, December 16, 2013 9:04 AM | Last reply by Anonymous - Friday, December 20, 2013 12:42 AM -
0 Votes
Is it called covariance?
Covariance enable implicit reference conversion for array types, delegate types, and generic type arguments:Answered | 1 Replies | 464 Views | Created by ardmore - Monday, March 9, 2015 2:59 PM | Last reply by Magnus (MM8) - Monday, March 9, 2015 3:03 PM -
2 Votes
Covariancy in MSVC++ 2005
Despite everyone saying that Visual Studio 2005 supports covariancy in return values for virtual functions (exept when using a > variable ...Answered | 4 Replies | 2899 Views | Created by K.D. Brodie - Wednesday, April 14, 2010 6:25 AM | Last reply by K.D. Brodie - Wednesday, April 14, 2010 1:42 PM -
0 Votes
Covariance not available in converted project
List<T> is not covariant, only a few interfaces in the framework are.Answered | 2 Replies | 1416 Views | Created by Daj_eng - Friday, December 30, 2011 12:06 PM | Last reply by Daj_eng - Friday, December 30, 2011 12:18 PM -
2 Votes
Lack of Covariance in the Task Class
We managed to live without generic covariance for about 8 years of C# programming, so of course it's not a mandatory feature.Answered | 10 Replies | 13583 Views | Created by Omer Mor - Saturday, October 30, 2010 8:37 PM | Last reply by Omer Mor - Monday, November 1, 2010 4:57 AM -
0 Votes
Function Covariance and Contravariance Question
Covariance/Contravariance does not require generics.Answered | 7 Replies | 2621 Views | Created by Evaristo9 - Saturday, January 21, 2012 7:01 AM | Last reply by Louis.fr - Thursday, January 26, 2012 1:31 PM -
0 Votes
Covariance & Contravariance while overriding.
Covariance allows you to directly use that result for the methods that take an IEnumerable<Person>.Answered | 2 Replies | 925 Views | Created by Pavan1947 - Thursday, March 12, 2015 7:02 AM | Last reply by Ammar.Zaied - Friday, March 13, 2015 3:43 PM -
0 Votes
Covariant vs ControVariant
Perhaps these articles will help ...Answered | 3 Replies | 2565 Views | Created by Alavudeenbatcha - Friday, November 2, 2012 3:44 AM | Last reply by Ego Jiang - Thursday, November 8, 2012 8:11 AM -
0 Votes
Broken covariant return types
Basically, the code is illegal C++--from the explanation it seems that it would be a big problem to determine the covariability for compiler providers.Answered | 9 Replies | 3698 Views | Created by ljestrada - Friday, August 26, 2011 6:48 PM | Last reply by ljestrada - Friday, September 23, 2011 10:30 PM -
0 Votes
PCL and covariant IEnumerable<out T>
If you wanna inherit from IEnumerable<T> and make your interface covariant then you get a compile time error that complains about IEnumerable<T> isn't covariant.Answered | 3 Replies | 2559 Views | Created by bitdisaster - Thursday, April 5, 2012 8:59 PM | Last reply by David M. Kean - Monday, April 9, 2012 9:06 PM -
0 Votes
Covariance contra variance
http://msdn.microsoft.com/en-us/library/ee207183.aspx http://blogs.msdn.com/b/csharpfaq/archive/2010/02/16/covariance-and-contravariance-faq.aspx ...Answered | 2 Replies | 35 Views | Created by Anonymous - Thursday, March 22, 2012 6:17 AM | Last reply by Anonymous - Wednesday, March 28, 2012 6:11 AM - Items 1 to 20 of 1119078 Next ›
No announcements