I thought that you it is forbidden to create an instance of an interface.
But a help example (search for Explicit Interface Implementation Sample)
from visual studio has the following sample code:
// Declare an instance of the English units interface:
IEnglishDimensi ons eDimensions = (IEnglishDimens ions) myBox;
// Declare an instance of the metric units interface:
IMetricDimensio ns mDimensions = (IMetricDimensi ons) myBox;
So is this a mistatement - will someone put into words what the above
statements are doing.
thanks
grs
But a help example (search for Explicit Interface Implementation Sample)
from visual studio has the following sample code:
// Declare an instance of the English units interface:
IEnglishDimensi ons eDimensions = (IEnglishDimens ions) myBox;
// Declare an instance of the metric units interface:
IMetricDimensio ns mDimensions = (IMetricDimensi ons) myBox;
So is this a mistatement - will someone put into words what the above
statements are doing.
thanks
grs
Comment