Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass A Collection Of Objects As A Param
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Pass A Collection Of Objects As A Param
Divers
Thread ID:
01339253
Message ID:
01339253
Vues:
61
Suppose I have an employee class
public class Employee()
{
    string sName = "";
}
I now want to create a collection of employee objects and pass it as a param to a method in another class.
How do I do this?


I will also want to return that collection from a method. Pseudocode:

List EmpCollection = SomeClass.GetEmpCollection();

I'm not sure how to code this.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform