Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
QuestionCreate FTP Site from website Pin
LoneWolfAGQ226-Feb-07 13:04
LoneWolfAGQ226-Feb-07 13:04 
AnswerRe: Create FTP Site from website Pin
mike montagne26-Feb-07 13:27
mike montagne26-Feb-07 13:27 
QuestionRe: Create FTP Site from website Pin
LoneWolfAGQ227-Feb-07 8:11
LoneWolfAGQ227-Feb-07 8:11 
GeneralNeed help. Hit learning barrier. [modified] Pin
JMOdom26-Feb-07 10:58
JMOdom26-Feb-07 10:58 
GeneralRe: Need help. Hit learning barrier. Pin
Christian Graus26-Feb-07 11:09
protectorChristian Graus26-Feb-07 11:09 
GeneralRe: Need help. Hit learning barrier. Pin
DavidNohejl26-Feb-07 11:13
DavidNohejl26-Feb-07 11:13 
GeneralRe: Need help. Hit learning barrier. Pin
JMOdom26-Feb-07 17:24
JMOdom26-Feb-07 17:24 
QuestionDeriving genric class from another custom generic... two signatures, which is correct ... lets see some sharpness [modified] Pin
clooge26-Feb-07 10:31
clooge26-Feb-07 10:31 
When I derive a generic collection from another custom generic class, the signature is creating a lot of problems for me. Mad | :mad:

English:
Build a GenColl (derived from keyedCollection ) containing elements of a GenElement.
- The compiler tells me to use an identifier in the signature and not the type?!?!
- and when I use place holder for types, it asks for reference namespace??
_______________________________________________________
The actual generic classes (simplified for easy reading)


// simple - works, the element or base construct
public class GenElement<Key, Value>{}



// this doesnt work, it is a collection of the above generic class
// I am not sure of what the signature should be... tried many combo
public class GenCollection <Guid, GenElement<<Key, Value>> : KeyedCollection<Guid, <Key, Value>>
{
// rest of the implementation blah blah
// with abstract over rides
}


^ ^
-The problem is, if I include the type place holders Key, Value in the
definition (public class GenCollection <Guid, GenElement<<Key, Value>> ), the complier complains that GenElement should be an identifier and not a type? if I removed the type place holders (public class GenCollection <Guid, GenElement>) its just fine, but doesnt see that GenCollection contains a GenElement

-can some help me resolve this. What should I do to get a generic collection GenCollection container that contains genElement (which further has two typePlace holders, key and value GenElement<<Key, Value>)?

-How do I, in the definition tie the Guid to the Key, is it possible?




-- modified at 10:28 Tuesday 27th February, 2007
AnswerRe: Deriving genric class from another custom generic... two signatures, which is correct ... lets see some sharpness Pin
Ed.Poore26-Feb-07 12:21
Ed.Poore26-Feb-07 12:21 
GeneralRe: Deriving genric class from another custom generic... two signatures, which is correct ... lets see some sharpness Pin
clooge27-Feb-07 4:32
clooge27-Feb-07 4:32 
GeneralRe: Deriving genric class from another custom generic... two signatures, which is correct ... lets see some sharpness Pin
Martin#27-Feb-07 5:03
Martin#27-Feb-07 5:03 
QuestionOpenFileDialog Pin
slaiser26-Feb-07 10:14
slaiser26-Feb-07 10:14 
AnswerRe: OpenFileDialog Pin
Elina Blank26-Feb-07 11:02
sitebuilderElina Blank26-Feb-07 11:02 
QuestionFirst Time Crystal report user ! Pin
mrkeivan26-Feb-07 9:59
mrkeivan26-Feb-07 9:59 
AnswerRe: First Time Crystal report user ! Pin
Sylvester george26-Feb-07 18:58
Sylvester george26-Feb-07 18:58 
AnswerCrystal Report in .Net is not Complex. Pin
Binod K26-Feb-07 19:05
Binod K26-Feb-07 19:05 
QuestionSwitch between two properties [modified] Pin
daniel9926-Feb-07 8:17
daniel9926-Feb-07 8:17 
AnswerRe: Switch between two properties Pin
Christian Graus26-Feb-07 8:24
protectorChristian Graus26-Feb-07 8:24 
GeneralRe: Switch between two properties Pin
daniel9926-Feb-07 8:39
daniel9926-Feb-07 8:39 
GeneralRe: Switch between two properties Pin
Pete O'Hanlon26-Feb-07 8:48
mvePete O'Hanlon26-Feb-07 8:48 
GeneralRe: Switch between two properties Pin
Christian Graus26-Feb-07 8:55
protectorChristian Graus26-Feb-07 8:55 
GeneralRe: Switch between two properties Pin
daniel9926-Feb-07 9:04
daniel9926-Feb-07 9:04 
GeneralRe: Switch between two properties Pin
Pete O'Hanlon26-Feb-07 9:06
mvePete O'Hanlon26-Feb-07 9:06 
GeneralRe: Switch between two properties Pin
Judah Gabriel Himango26-Feb-07 17:35
sponsorJudah Gabriel Himango26-Feb-07 17:35 
AnswerRe: Switch between two properties Pin
Martin#26-Feb-07 9:21
Martin#26-Feb-07 9:21 

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.