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...
Show off your group to the world. Share a photo of your group with us.

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 15 - 44 of 44   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
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
39
Not sure I follow 100% but it seems to me that you want your function to accept a parameter with a specific signature hence an Interface. If you're worker...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 8, 2006
2:40 am
40
Thanks for the response. My Worker (WorkerInfo) object is one of many different entity types in my solution. Another one is a Customer (CustomerInfo) object. ...
Kirk Miller
kmiller_work
Offline Send Email
Jun 8, 2006
5:18 pm
41
Yeah, I don't see a way around the switch, but it's a very common thing from samples that I've seen. But regardless what ever helps centralize and minimize the...
santiago.perez@...
saintairbrus...
Offline Send Email
Jun 8, 2006
6:29 pm
42
StrongCoders.com is proud to announce the launch of its community site featuring brand new specialized forums in addition to its already-popular blogs. Ask and...
Ryan Olshan
strongtypes
Offline Send Email
Oct 18, 2006
1:44 am
43
The StrongCoders.com Community now has a forum that parallels this group for those of you who prefer forums. The StrongTypes forum allows for subscription by...
Ryan Olshan
strongtypes
Offline Send Email
Oct 31, 2006
9:28 pm
44
hi all, I was working on function that counts the word frequency of file, what i want to do is find the word that occurs the most, so I am not familiar with...
a_abdi406
Offline Send Email
Sep 15, 2007
3:17 pm
Messages 15 - 44 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