No announcements
Found 2281235 threads
-
1 Votes
Using Generics With Interfaces
By the way, use "where T : blah" is a Generic Constraint.Answered | 3 Replies | 2991 Views | Created by Zane Kaminski - Wednesday, October 29, 2008 10:24 PM | Last reply by Zane Kaminski - Sunday, November 2, 2008 5:11 AM -
0 Votes
Differences between method overloading and Generics
Hi, It appears there is no relation between method overloading and Generics.Answered | 4 Replies | 6991 Views | Created by srkvellanki - Monday, April 20, 2009 4:38 PM | Last reply by DeborahK - Friday, April 24, 2009 3:02 PM -
0 Votes
Generic Interface and Class.
Hi Miguel, No need to define T for all the methods....Answered | 2 Replies | 2048 Views | Created by MDMoura - Sunday, July 10, 2011 9:32 PM | Last reply by Derek Smyth - Monday, July 11, 2011 8:55 AM -
1 Votes
Calling methods when using Generics
A good counter example is when using generics to write methods that act on sequences or collections themselves; often you don't need ...Answered | 11 Replies | 1126 Views | Created by WarrickFitzs - Friday, February 8, 2013 3:15 PM | Last reply by WarrickFitzs - Monday, February 11, 2013 8:31 PM -
0 Votes
Parameter generation in Spec Explorer
You are right, we support parameter generation both for rule methods and actions.Answered | 1 Replies | 6445 Views | Created by lxq48 - Sunday, May 16, 2010 10:34 AM | Last reply by Xiang Li - Sunday, May 16, 2010 2:45 PM -
1 Votes
Generic methods for convering between classes
From what I understand of your problem this isn't going to be possible.Answered | 6 Replies | 1000 Views | Created by Milsnips - Saturday, October 24, 2015 11:26 AM | Last reply by CoolDadTx - Tuesday, October 27, 2015 5:45 PM -
0 Votes
Constraints in the parameters generation
I'm new in Spec Explorer and I have a doubt about the constraints in the parameters generation.Answered | 1 Replies | 6560 Views | Created by Kikillo10 - Monday, December 20, 2010 3:13 PM | Last reply by Nico Kicillof - Tuesday, December 21, 2010 9:35 PM -
0 Votes
Overload of methods in generic classes under C#
I use the generic parameter to specify a return type.Answered | 10 Replies | 3683 Views | Created by Loïc Morvan - Wednesday, July 15, 2009 12:20 PM | Last reply by Rudedog2 - Thursday, July 16, 2009 10:15 PM -
2 Votes
Make base Interface for generic classes
But anyways, problem solved, thanks.Answered | 9 Replies | 3296 Views | Created by Tekito - Tuesday, May 25, 2010 8:25 PM | Last reply by Tekito - Wednesday, May 26, 2010 6:28 PM -
3 Votes
Generic method using delegates
Create an empty interface and let both of your classes implement that, public interface ICommon { } class Form : ICommon class Course : ...Answered | 6 Replies | 625 Views | Created by SaranRam - Tuesday, November 12, 2013 9:55 AM | Last reply by Adavesh - Tuesday, November 12, 2013 3:47 PM -
1 Votes
Returning object with generic type from a method
Hi Ken2017, Constraints are used in Generics to restrict the types that can be substituted for type parameters.Answered | 2 Replies | 317 Views | Created by Ken2017 - Thursday, August 3, 2017 4:43 AM | Last reply by Yong Lu - Friday, August 4, 2017 6:02 AM -
1 Votes
Is there any problem when generic type parameter and non-generic type parameter are both used in a function?
There is nothing wrong with mixing generic types and regular types.Answered | 3 Replies | 468 Views | Created by E-John - Wednesday, November 28, 2018 8:25 AM | Last reply by E-John - Tuesday, December 4, 2018 2:25 AM -
0 Votes
generic methods n00b
I think the most basic problem here might program designs that need to check for type.Answered | 5 Replies | 2934 Views | Created by d_troyer - Thursday, May 21, 2009 3:21 PM | Last reply by Rudedog2 - Thursday, May 21, 2009 7:38 PM -
0 Votes
How to generator the Parameter
foreach (SqlParameter p in cmd.Parameters) { Console.WriteLine(p.ParameterName); } ...Answered | 3 Replies | 4287 Views | Created by Q John Chen - Tuesday, August 18, 2009 7:37 PM | Last reply by Michael Aspengren - MSFT - Wednesday, August 19, 2009 2:41 PM -
0 Votes
Creating Generic Search Method
I solved my problem.Answered | 2 Replies | 283 Views | Created by AbhinawK - Wednesday, August 24, 2016 9:57 AM | Last reply by Stefan Hoffmann - Wednesday, August 24, 2016 11:16 AM -
0 Votes
Problem with using Generics
.We have to implement an interface in the class .Conversion of queue to generic and other things.Answered | 11 Replies | 3338 Views | Created by santoshdarekar - Tuesday, June 9, 2009 12:19 PM | Last reply by santoshdarekar - Sunday, June 14, 2009 6:05 AM -
0 Votes
problem with structures as parameters in methods that have to generate test cases?
How pex generates the test cases for the below method?Answered | 5 Replies | 6349 Views | Created by rvellanki - Thursday, February 4, 2010 6:33 AM | Last reply by rvellanki - Tuesday, March 2, 2010 7:00 AM -
4 Votes
Newbie using a generic method
You'd need to create an interface, such as IOrder, then have those classes implement it.Answered | 5 Replies | 3103 Views | Created by CraigWasHere - Thursday, February 17, 2011 9:04 PM | Last reply by CraigWasHere - Friday, February 18, 2011 4:56 PM -
1 Votes
Generic interfaces used as properties in abstract classes where derived classes implement the specific interface
This is generally done by creating a class that accepts the parts to be composed as parameters.Answered | 3 Replies | 4758 Views | Created by Dean Kasa - Thursday, February 27, 2014 4:50 PM | Last reply by CoolDadTx - Thursday, February 27, 2014 7:14 PM -
1 Votes
Generics - How to build a generic base interface ?
After talking with you I even better realized that we always need a non-generic base interface.Answered | 13 Replies | 3176 Views | Created by msejder - Saturday, December 11, 2010 2:13 PM | Last reply by msejder - Sunday, December 12, 2010 3:27 AM
No announcements