P
phoenix
Hello,
I guess I'm missing to logic behind the limitation or I'm doing something
wrong (most likely). I have the following interface and class
public interface IRBSPParser
{
void Parser(byte [] b, int offset, int size)
}
public class RBSPType1 : IRBSPParser
{
public void Parser(byte [] b, int offset, int size)
{
// do whatever needed
}
}
No problem there but now I would want the function Parser declared static
and that just won't compile. static in the interface is an invalid item and
when I try to use static in the class it tells me the class doesn't
implement the interface. Why is this invalid in the first place? And how
could I change it? Should I create an abstract base class?
TIA
Yves
I guess I'm missing to logic behind the limitation or I'm doing something
wrong (most likely). I have the following interface and class
public interface IRBSPParser
{
void Parser(byte [] b, int offset, int size)
}
public class RBSPType1 : IRBSPParser
{
public void Parser(byte [] b, int offset, int size)
{
// do whatever needed
}
}
No problem there but now I would want the function Parser declared static
and that just won't compile. static in the interface is an invalid item and
when I try to use static in the class it tells me the class doesn't
implement the interface. Why is this invalid in the first place? And how
could I change it? Should I create an abstract base class?
TIA
Yves