Hi guys,
I have a interface that implements/extends the generic collections interface, like so:
The implementing class implements all the required methods the way I believe is proper for C# (I say this because the function calls were generated by Visual Studio) in the implemented class:
But how do I call these functions from the implementing class? Calling these methods or properties from an instance of RawTrafficDataBuffer gives me a compilation error, and so far I haven't been able to figure out what I'm doing wrong. Thanks in advance for the help!
-Sean
I have a interface that implements/extends the generic collections interface, like so:
Code:
public class RawTrafficDataBuffer : IRawDataBuffer
The implementing class implements all the required methods the way I believe is proper for C# (I say this because the function calls were generated by Visual Studio) in the implemented class:
Code:
public class RawTrafficDataBuffer : IRawDataBuffer
{
ICollection<RawTrafficDatagram>.Add(RawTrafficDatagram Item)
{
...
}
int ICollection<RawTrafficDatagram>.Count
{
get{ ... }
}
}
But how do I call these functions from the implementing class? Calling these methods or properties from an instance of RawTrafficDataBuffer gives me a compilation error, and so far I haven't been able to figure out what I'm doing wrong. Thanks in advance for the help!
-Sean