Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: Xml - DTD processing Pin
Super Lloyd16-Apr-07 21:08
Super Lloyd16-Apr-07 21:08 
Questioncryptography and Steganography ... Pin
Software_Specialist16-Apr-07 13:10
Software_Specialist16-Apr-07 13:10 
JokeRe: cryptography and Steganography ... Pin
Luc Pattyn16-Apr-07 13:29
sitebuilderLuc Pattyn16-Apr-07 13:29 
GeneralRe: cryptography and Steganography ... Pin
Software_Specialist17-Apr-07 5:33
Software_Specialist17-Apr-07 5:33 
AnswerRe: cryptography and Steganography ... Pin
sujithkumarsl16-Apr-07 19:56
sujithkumarsl16-Apr-07 19:56 
QuestionComboBox values from lookups table Pin
sailchris2216-Apr-07 12:48
sailchris2216-Apr-07 12:48 
GeneralRe: ComboBox values from lookups table Pin
andre_swnpl16-Apr-07 19:26
andre_swnpl16-Apr-07 19:26 
QuestionA really stupid / simple re. generics and their base type Pin
malharone16-Apr-07 10:38
malharone16-Apr-07 10:38 
I don't know how to do this, and I searched Google/MSDN for it also but none helped -- may be I typed in the wrong search keywords !

Anyways, what's the base type of a generic class?

E.g.
Assume I've a List<Employee>:List<T> and List<Company>:List<T>, how do I get "List" as the inner base type of List<Employee> and List<Company>?

If I do GetType() on my _listEmployees, I get System.Collections.Generic.List`1[[Employee]]. And the base type of this type (e.g. _listEmployees.GetType().BaseType), it is System.Object.

I'd like to use "is" keyword on my generic objects to compare them.


One more question on the "generic" declarations.
In my app, I've an abstract class called GenericValueExpression<T> and concrete classes NumericValueExpression, TextValueExpression, DateValueExpression which derive from GenericValueExpression<int>, GenericValueExpression<string>, and GenericValueExpression<DateTime> respectively.

How can I declare a collection of GenericValueExpressions?

E.g. List< GenericValueExpression<???> > _myValueExpressions? What would go instead of ????.

Thanks for your help.

- Malhar
AnswerRe: A really stupid / simple re. generics and their base type Pin
Christian Graus16-Apr-07 16:12
protectorChristian Graus16-Apr-07 16:12 
GeneralRe: A really stupid / simple re. generics and their base type Pin
malharone26-Apr-07 20:27
malharone26-Apr-07 20:27 
GeneralRe: A really stupid / simple re. generics and their base type Pin
Christian Graus26-Apr-07 22:11
protectorChristian Graus26-Apr-07 22:11 
QuestionHow to Render a mcms posting page in snother page Pin
MyRunner16-Apr-07 10:22
MyRunner16-Apr-07 10:22 
QuestionCasting in C# Pin
BlitzPackage16-Apr-07 9:29
BlitzPackage16-Apr-07 9:29 
AnswerRe: Casting in C# Pin
MoustafaS16-Apr-07 9:41
MoustafaS16-Apr-07 9:41 
GeneralRe: Casting in C# Pin
Christian Graus16-Apr-07 16:14
protectorChristian Graus16-Apr-07 16:14 
GeneralRe: Casting in C# Pin
MoustafaS17-Apr-07 4:57
MoustafaS17-Apr-07 4:57 
GeneralRe: Casting in C# Pin
Seishin#16-Apr-07 23:26
Seishin#16-Apr-07 23:26 
AnswerRe: Casting in C# Pin
Luc Pattyn16-Apr-07 9:48
sitebuilderLuc Pattyn16-Apr-07 9:48 
AnswerRe: Casting in C# Pin
emiaj16-Apr-07 13:27
emiaj16-Apr-07 13:27 
GeneralRe: Casting in C# Pin
Luc Pattyn16-Apr-07 13:33
sitebuilderLuc Pattyn16-Apr-07 13:33 
GeneralRe: Casting in C# Pin
Russell Jones16-Apr-07 23:39
Russell Jones16-Apr-07 23:39 
QuestionVersionInfo? Pin
Ravi Bhavnani16-Apr-07 8:51
professionalRavi Bhavnani16-Apr-07 8:51 
AnswerRe: VersionInfo? Pin
Tarakeshwar Reddy16-Apr-07 9:01
professionalTarakeshwar Reddy16-Apr-07 9:01 
GeneralRe: VersionInfo? Pin
Ravi Bhavnani16-Apr-07 9:22
professionalRavi Bhavnani16-Apr-07 9:22 
AnswerRe: VersionInfo? Pin
Judah Gabriel Himango16-Apr-07 9:34
sponsorJudah Gabriel Himango16-Apr-07 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.