G
Guest
HI!
Is it possible to implement the methods of an interface as private.
For exemple, I have an interface :
public interface ITest{
void MyMethod();
}
I want to create a class like this:
public class MyTest : ITest{
private void MyMethod(){
}
}
where the private method MyMethod is the implementation of the ITest's method.
Using VB.Net this is possible. But I don't know the way to do it with C#.
Thanks for any response.
Is it possible to implement the methods of an interface as private.
For exemple, I have an interface :
public interface ITest{
void MyMethod();
}
I want to create a class like this:
public class MyTest : ITest{
private void MyMethod(){
}
}
where the private method MyMethod is the implementation of the ITest's method.
Using VB.Net this is possible. But I don't know the way to do it with C#.
Thanks for any response.