<key value=""> collection as a parameter in an interface method</key>
-
Hi, I have created two library (COM) in C# , and i have a interface method as UpdateData() in a component. Now i need t0 pass a collection as a parameter in an interface method. How can i ac chive this. Can i pass a map object as a parameter in an interface method??
-
Hi, I have created two library (COM) in C# , and i have a interface method as UpdateData() in a component. Now i need t0 pass a collection as a parameter in an interface method. How can i ac chive this. Can i pass a map object as a parameter in an interface method??
Are you talking about using a dot net collection parameter in a dot net interace method? Could you please provide some more details so that the scenario becomes clearer?
There's nothing left in my right brain and nothing right in my left brain.
modified on Thursday, December 10, 2009 12:40 PM
-
Are you talking about using a dot net collection parameter in a dot net interace method? Could you please provide some more details so that the scenario becomes clearer?
There's nothing left in my right brain and nothing right in my left brain.
modified on Thursday, December 10, 2009 12:40 PM
ok.. Let say .. 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 or .net collection obj) , which saves data in a<< key , value >> format .. MyClass myclass = new MyClass() myclass.DisplayData( ???) } My question is how can i pass a collection data structure as a parameter in a interface DisplayData() method ?? Can i directly pass a collection object in interface method?? (Please note that this is an interface method and can be used by other languages.)