Search the web
Sign In
New User? Sign Up
StrongTypes · Free .NET Generics Help
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 9 - 38 of 44   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
9
Refering to this which I found on Microsoft's site: List<T> is basically a better ArrayList. It is optimized for speed, size, and power. Use it for majority of...
successin06x
Offline Send Email
Feb 3, 2006
6:44 pm
10
Looks like you are using a collection and not an API. I think its fine. ... -- Eric Ramseur Microsoft.NET Consultant ... http://eramseur.blogspot.com |...
Eric Ramseur
Eramseur
Offline Send Email
Feb 3, 2006
7:05 pm
11
Oh, man--i got all caught up in my answer and lost sight of the original question, sorry 'bout that. The design guidelines touch on the answer. From here: ...
Chris Mohan
chrismo1
Offline Send Email
Feb 4, 2006
5:56 am
12
I don't see an advantage to using generics in this scenario; (whether its Collection<T> or List<T>). I see a disadvantage since a generic object is used in...
Chris Mohan
chrismo1
Offline Send Email
Feb 4, 2006
6:00 am
13
Thank you Chris for your help. I really appreciate it.................... Chris Mohan <chrismohan@...> wrote: Oh, man--i got all caught up in my...
Web Master
successin06x
Offline Send Email
Feb 10, 2006
6:37 pm
14
Here's an interesting article that I came across regarding using nullable types with typed DataSets. Apparently, this feature was cut out at the last minute....
Ryan Olshan
teranetlists
Offline Send Email
Feb 14, 2006
6:32 pm
15
Hi everyone, I love the idea of generics and am trying to put it to use, following the samples given on www.asp.net tutorials, specifically: ...
preludeandave
Offline Send Email
Feb 16, 2006
6:21 am
16
Hi Dave, This most likely has to do with the primary key. Make sure that the primary key is included in the DataKeyNames property for the GridView. HTH Thank...
Ryan Olshan
teranetlists
Offline Send Email
Feb 16, 2006
6:30 am
17
Thanks Ryan, Ok, that wasn't the problem. I had that specified in the GridView already. The problem was my function UpdateAllergy, this is what it should be: ...
preludeandave
Offline Send Email
Feb 17, 2006
3:49 am
18
I think Generics will solve my need for strong type casting with web services but I am having a problem with the Web Service Code. Any ideas on how to pass an...
matmathiasen
Offline Send Email
Apr 29, 2006
12:08 am
19
Hi, You can't use Generics with web services. Ryan Thank you, Ryan Olshan Website - http://www.StrongTypes.com <http://www.strongtypes.com/> Group -...
Ryan Olshan
teranetlists
Offline Send Email
Apr 29, 2006
12:10 am
20
I'm trying to loop through a reader and put all the values into a generic list. public T RStoList<T>(SqlDataReader rdr, int index) { List<T> list = new...
sureshotnj
Offline Send Email
May 15, 2006
1:58 am
21
Since GetValue returns an object, you'd have to cast it to T. public T RStoList<T>(SqlDataReader rdr, int index) { List<T> list = new List<T>(); while...
Ryan Olshan
teranetlists
Offline Send Email
May 15, 2006
2:01 am
22
Hello everyone, this is my first post so please bare with me. I am trying to understand why I can't cast generic class to a class of a base type. I have the...
Santiago Perez
saintairbrus...
Offline Send Email
Jun 2, 2006
6:46 am
23
What is the exception or compiler error you are getting? Thank you, Ryan Olshan Website - http://www.StrongTypes.com <http://www.strongtypes.com/> Group -...
Ryan Olshan
teranetlists
Offline Send Email
Jun 2, 2006
7:03 am
24
Error 2 Cannot implicitly convert type 'ProjectCentral.Contacts.Personnel_List<ProjectCentral.Contacts.Contract_Person>' to ...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 2, 2006
4:23 pm
25
Talk about simple eh? How you're going to keep all this stuff straight is beyond me. You've got Contact AND Contract all goo'd together and triple inheritance...
Dave Cline
davesmountai...
Offline Send Email
Jun 2, 2006
4:25 pm
26
Funny thing is that I did exactly what you're talking about. interface ILetter { } class A : ILetter { private string _ID; public string ID { get { return...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 4, 2006
9:21 pm
27
I'm not expert, in anybody's book, but I believe you're trying to use an interface like a base class. An interface is really just a signature, a template if...
Dave Cline
davesmountai...
Offline Send Email
Jun 4, 2006
10:20 pm
28
Hey Dave thanks for your help and insight into casting to an Interface. I understand what you mean, and I follow your example to the T. My only problem is that...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 5, 2006
9:26 pm
29
... to turn a person into a painting. Dave, your anology is wrong. It's perfectly valid to cast an object to an interface it supports. Inclusive you don't even...
João Paulo Carreiro
joaopaulocar...
Offline Send Email
Jun 6, 2006
1:31 am
30
Santiago, Searching on Groups.google.com Generic types are typesafe to the type they are bound to. From the draft of the ECMA spec: <quote> No special...
Dave Cline
davesmountai...
Offline Send Email
Jun 6, 2006
1:33 am
31
Paulo, Ah, well, I stand corrected. Thank you. I realize I was wrong but, is there a valid reason why someone would want to cast down to an interface? ...
Dave Cline
davesmountai...
Offline Send Email
Jun 6, 2006
1:54 am
32
... You only seem to have broken the laws of nature ( or more specifically the laws of typing in C#), but in reality you havent'. If you run your code you'll...
Joćo Paulo Carreiro
joaopaulocar...
Offline Send Email
Jun 6, 2006
8:55 am
33
Manager m2 = new Manager(); m2.Name = "Manager M2"; IMammal m3 = m2; Mammal m4 = (Mammal)m3; // Generates runtime casting exception interface IMammal { void...
Dave Cline
davesmountai...
Offline Send Email
Jun 6, 2006
4:14 pm
34
Paulo, here's another question to further complicate things: Lets say I want to use a sortedlist as the basis, which does not support to Array? I started...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 6, 2006
4:32 pm
35
Just to add to this post Paulo if I may, Dave, what I've mainly seen it used for is for passing of params to a method. If you have a methods that needs to...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 6, 2006
4:32 pm
36
I found this very intersting and complicated article about programming with generics. I hope one of you can benefit from it and understand it because my head...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 6, 2006
4:42 pm
37
Ah, that makes sense. Thanks for that. DC On 6/6/06, santiago.perez@... <santiago.perez@...> ... [Non-text portions of this message...
Dave Cline
davesmountai...
Offline Send Email
Jun 6, 2006
6:25 pm
38
Here's my scenario: 1. I have a DAL 2. In my DAL, I want ONE function that will transform an ADOReader resultset into a strong data entity object that I will...
kmiller_work
Offline Send Email
Jun 6, 2006
11:24 pm
Messages 9 - 38 of 44   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help