F
fooshm
Hello,
I would like to implement the following code written in java using c#
java:
public void op (List myList) {
....
myList.add(myObjecy);
Collections.sort(myList);
}
The problem when trying to convert this type of code is that the sort
method is not located outside the class, so the only way (the way that
I see) to sort in c# is to declare a concrete class and not an
interface, i.e.
c#:
public void op (List<Object> myList) {
....
myList.add(myObjecy);
myList.sort();
}
Is there any solution to this problem?
Thanks,
Efi
I would like to implement the following code written in java using c#
java:
public void op (List myList) {
....
myList.add(myObjecy);
Collections.sort(myList);
}
The problem when trying to convert this type of code is that the sort
method is not located outside the class, so the only way (the way that
I see) to sort in c# is to declare a concrete class and not an
interface, i.e.
c#:
public void op (List<Object> myList) {
....
myList.add(myObjecy);
myList.sort();
}
Is there any solution to this problem?
Thanks,
Efi