Click here to Skip to main content
15,904,416 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Remoting: Switching between MBR and MBV at run-time. Pin
nitikin29-Jun-07 0:27
nitikin29-Jun-07 0:27 
GeneralRe: Remoting: Switching between MBR and MBV at run-time. [modified] Pin
Andy L 229-Jun-07 6:00
Andy L 229-Jun-07 6:00 
GeneralRe: Remoting: Switching between MBR and MBV at run-time. Pin
nitikin1-Jul-07 23:36
nitikin1-Jul-07 23:36 
GeneralRe: Remoting: Switching between MBR and MBV at run-time. Pin
Andy L 23-Jul-07 10:01
Andy L 23-Jul-07 10:01 
QuestionProblem in converting WinHelp to HTML Help [modified] Pin
asha_cybergirl26-Jun-07 22:36
asha_cybergirl26-Jun-07 22:36 
QuestionCommon DLL storage Pin
tri59525-Jun-07 23:22
tri59525-Jun-07 23:22 
AnswerRe: Common DLL storage Pin
Manas Bhardwaj25-Jun-07 23:42
professionalManas Bhardwaj25-Jun-07 23:42 
GeneralRe: Common DLL storage Pin
tri59525-Jun-07 23:46
tri59525-Jun-07 23:46 
GeneralRe: Common DLL storage Pin
Vasudevan Deepak Kumar29-Jun-07 1:42
Vasudevan Deepak Kumar29-Jun-07 1:42 
QuestionHow to Activate A Control Added to Desktop Pin
Nagaraju_Focus25-Jun-07 20:43
Nagaraju_Focus25-Jun-07 20:43 
QuestionData connection wizard Pin
lildiapaz25-Jun-07 15:03
lildiapaz25-Jun-07 15:03 
AnswerRe: Data connection wizard Pin
nitikin2-Jul-07 1:27
nitikin2-Jul-07 1:27 
QuestionMemory management and memory leaks Pin
Giorgi Dalakishvili25-Jun-07 8:55
mentorGiorgi Dalakishvili25-Jun-07 8:55 
AnswerRe: Memory management and memory leaks Pin
Dave Kreskowiak25-Jun-07 10:02
mveDave Kreskowiak25-Jun-07 10:02 
GeneralRe: Memory management and memory leaks Pin
Paul Conrad25-Jun-07 15:06
professionalPaul Conrad25-Jun-07 15:06 
GeneralRe: Memory management and memory leaks Pin
Giorgi Dalakishvili25-Jun-07 20:37
mentorGiorgi Dalakishvili25-Jun-07 20:37 
GeneralRe: Memory management and memory leaks Pin
originSH25-Jun-07 22:19
originSH25-Jun-07 22:19 
GeneralRe: Memory management and memory leaks Pin
Dave Kreskowiak26-Jun-07 2:42
mveDave Kreskowiak26-Jun-07 2:42 
GeneralRe: Memory management and memory leaks Pin
originSH26-Jun-07 2:44
originSH26-Jun-07 2:44 
QuestionHow to build a IP LAN Scanner in .Net Pin
Carmine_XX25-Jun-07 4:49
Carmine_XX25-Jun-07 4:49 
AnswerRe: How to build a IP LAN Scanner in .Net Pin
Ilya Verbitskiy8-Jul-07 1:18
Ilya Verbitskiy8-Jul-07 1:18 
GeneralRe: How to build a IP LAN Scanner in .Net Pin
Carmine_XX8-Jul-07 4:41
Carmine_XX8-Jul-07 4:41 
GeneralRe: How to build a IP LAN Scanner in .Net Pin
Ilya Verbitskiy8-Jul-07 21:19
Ilya Verbitskiy8-Jul-07 21:19 
QuestionGenerics, Inheritance and frustration Pin
Santiago Perez25-Jun-07 2:38
Santiago Perez25-Jun-07 2:38 
AnswerRe: Generics, Inheritance and frustration Pin
Andy L 225-Jun-07 7:10
Andy L 225-Jun-07 7:10 
You need to pre-define the type for the generic List class to the type of the object that will be populating it i.e. iPerson so assuming classes Person, Contract_Person and Vendor_Person are all derived from iPerson your code needs to change to the following:

public static List<iPerson> TGeneratePersonList(IDataReader oDR, ePersonType PersonType)
{
...

iPerson oP = null;
List<iPerson> oPList = new List<iPerson>();

...
}


and your property to:

public List<iPerson> Personnel_List
{
...
}

and the field _Personnel_List to:

private List<iPerson> _Personnel_List;

Incidentally, the TGeneratePersonList() is not a generic method - it is an ordinary method that returns a generic List of type iPerson.

This is a generic method:
public void GenericMethod<T>() // Where type T is defined when the method is called
{
// Do something with T in here
}

example calls

GenericMethod<int>();
GenericMethod<string>();
GenericMethod<MyClass>();

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.