/* * The following method does not know * that through the adapter,it can actually process a * Triangle instead of a Rectangle. */ static double GetDetails(IRectangle rectangle) { rectangle.AboutMe(); return(rectangle.CalculateArea()); }