Click here to Skip to main content
14,692,883 members
Home » Discussions » C#
   

C#

 
AnswerRe: Question For List Generics Pin
0x3c014-Jun-09 0:22
Member0x3c014-Jun-09 0:22 
GeneralRe: Question For List Generics Pin
Sider8914-Jun-09 0:36
MemberSider8914-Jun-09 0:36 
GeneralRe: Question For List Generics Pin
0x3c014-Jun-09 1:57
Member0x3c014-Jun-09 1:57 
GeneralRe: Question For List Generics Pin
Sider8914-Jun-09 2:04
MemberSider8914-Jun-09 2:04 
GeneralRe: Question For List Generics Pin
0x3c014-Jun-09 2:36
Member0x3c014-Jun-09 2:36 
GeneralRe: Question For List Generics Pin
Sider8914-Jun-09 6:30
MemberSider8914-Jun-09 6:30 
GeneralRe: Question For List Generics Pin
0x3c014-Jun-09 6:47
Member0x3c014-Jun-09 6:47 
GeneralRe: Question For List Generics Pin
Sider8914-Jun-09 20:39
MemberSider8914-Jun-09 20:39 
Maybe it'll work, but in my project I have many classes and Functions with generics and it's almost impossible to change all Big Grin | :-D
I think I solve this like this, I write it:


public delegate List< T > LoadChildHandler< T >(int parentId);

public class ObjectBase< T >
{
public int ID { get; set; }
}


public class Country : ObjectBase< Country >
{

public LoadChildHandler< City > LoadChild; // I just declare delegate in child class and there are not resist between City and Country, well works fine

public string CountryName { get; set; }

public List< City > Cities
{
get
{
return LoadChild(ID);
}
}
}



and so all I want it to do in a different way...
Now I must dclare this delegate in other classes too, it would be fine to do solve this problem, without declaring in other classes and not such torture Smile | :)

C# Developer

QuestionClosing and recreating a form Pin
SimpleData13-Jun-09 23:43
MemberSimpleData13-Jun-09 23:43 
AnswerRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 1:14
MemberHenry Minute14-Jun-09 1:14 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 1:15
MemberSimpleData14-Jun-09 1:15 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 1:31
MemberHenry Minute14-Jun-09 1:31 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 4:05
MemberSimpleData14-Jun-09 4:05 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 4:13
MemberHenry Minute14-Jun-09 4:13 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 4:36
MemberSimpleData14-Jun-09 4:36 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 4:40
MemberHenry Minute14-Jun-09 4:40 
AnswerRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 5:14
sitebuilderLuc Pattyn14-Jun-09 5:14 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 5:43
MemberSimpleData14-Jun-09 5:43 
GeneralRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 5:49
sitebuilderLuc Pattyn14-Jun-09 5:49 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 5:52
MemberSimpleData14-Jun-09 5:52 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 5:58
mveDave Kreskowiak14-Jun-09 5:58 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 5:55
mveDave Kreskowiak14-Jun-09 5:55 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 6:07
MemberSimpleData14-Jun-09 6:07 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 6:08
mveDave Kreskowiak14-Jun-09 6:08 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 6:13
MemberSimpleData14-Jun-09 6:13 

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.