J'ai une application wcf,
dans la classe service.svc j'ai un attribut
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
public Liste<Collection> collections=new Liste<Collection>();
public Liste<Collection> Methode1()
{// du code pour remplir la liste collections
    return collections
}
public int methode2()
{
   return collections.Counts();
}
=>lorsque je tape l'URI http://localhost:port/Methode1
il m'affiche le contenu de la liste sous forme XML Mais aprés quand je tape l'URI
http://localhost:port/Methode2 il m'affiche 0.
Comment gérer ça SVP?