1,354
100.0
Jun 29, 2011
Given two interface A1, A2 and an implementing class Y
public class Y : A1, A2 {
// implementation goes here
}
Outside the class
--------------------------
A1 instance = new Y(); // will only expose methods declared by A1 interface. In real scenario this could be dynamically fetched
Is this what you are looking out for?