How to use collection object as interface method parameter in .NET
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, How can i pass a collection object as a parameter ....??? Consider below example.. Interface IMyInterface { void DisplayData(??????); } Class MyClass : IMyInterface { void IMyInterface.DisplayData(??????) { Logic to display data Display First Name , Display last name... } } ///From client. Class Client { //I have a data structure (some data container) , which saves data like <key , value> say a map... MyClass myclass = new MyClass() myclass.DisplayData( ???) } Now what should be the parameter typr ???