public ExplicitInterfaceClient(ExplicitInterfaceImplementation implementationReference, ISimpleInterface interfaceReference) { var instancePropertyValue = interfaceReference.ThisIntPropertyOnlyNeedsAGetter; interfaceReference.ThisMethodRequiresImplement(); interfaceReference.ThisStringPropertyNeedsImplementingToo = "hello"; interfaceReference.InterfaceCanContainEventsToo += EventHandler; }
public ExplicitInterfaceClient(ExplicitInterfaceImplementation implementationReference, ISimpleInterface interfaceReference) { // Uncommenting this will cause compilation errors. //var instancePropertyValue = implementationReference.ThisIntegerPropertyOnlyNeedsAGetter; //implementationReference.ThisMethodRequiresImplementation(); //implementationReference.ThisStringPropertyNeedsImplementingToo = "Hello"; //implementationReference.InterfacesCanContainEventsToo += EventHandler; var interfacePropertyValue = interfaceReference.ThisIntegerPropertyOnlyNeedsAGetter; interfaceReference.ThisMethodRequiresImplementation(); interfaceReference.ThisStringPropertyNeedsImplementingToo = "Hello"; interfaceReference.InterfacesCanContainEventsToo += EventHandler; }
public ExplicitInterfaceClient(ExplicitInterfaceImplementation implementationReference, ISimpleInterface interfaceReference) { // Uncommenting this will cause compilation errors. //var instancePropertyValue = implementationReference.ThisIntegerPropertyOnlyNeedsAGetter; //implementationReference.ThisMethodRequiresImplementation(); //implementationReference.ThisStringPropertyNeedsImplementingToo = "Hello"; //implementationReference.InterfacesCanContainEventsToo += EventHandler; var interfacePropertyValue = interfaceReference.ThisIntegerPropertyOnlyNeedsAGetter; interfaceReference.ThisMethodRequiresImplementation(); interfaceReference.ThisStringPropertyNeedsImplementingToo = "Hello"; interfaceReference.InterfacesCanContainEventsToo += EventHandler; }