J
Jeroen
I've been searching for this answer for some time now but I either
can't find the correct search in this group, or the answer's not there
yet
Here's the problem:
I'm specifying an interface, that will have an ArrayList property (at
least, I'd very much *like* to use such a property). The only problem
is: I want the list only to accept string objects, nothing else. Can I
do this (or something alternative) in the interface? What's the
nice/'correct' solution?
This is what I have so far:
public interface ISomeInterface
{
// This list should only accept strings, but now it accepts anything.
public System.Collections.ArrayList ListWithOnlyStringObjects
{
get;
set;
}
}
can't find the correct search in this group, or the answer's not there
yet
Here's the problem:I'm specifying an interface, that will have an ArrayList property (at
least, I'd very much *like* to use such a property). The only problem
is: I want the list only to accept string objects, nothing else. Can I
do this (or something alternative) in the interface? What's the
nice/'correct' solution?
This is what I have so far:
public interface ISomeInterface
{
// This list should only accept strings, but now it accepts anything.
public System.Collections.ArrayList ListWithOnlyStringObjects
{
get;
set;
}
}