Design Pattern Examples
Overview of object-oriented design patterns
Proxy_Classes_Container Class Reference

For the purposes of this example, this class encapsulates the real class and proxy class to hide them from the rest of the example program. In a real program, the real class would be in its own assembly and separate from the proxy class. More...

Collaboration diagram for Proxy_Classes_Container:
Collaboration graph

Classes

class  Proxy_Class
 The proxy class that implements the IWorkByProxy. More...
 
class  Real_Class
 The real class object that does all the work. More...
 

Static Public Member Functions

static IWorkByProxy CreateProxy ()
 Retrieve a new instance of the proxy class.
 

Detailed Description

For the purposes of this example, this class encapsulates the real class and proxy class to hide them from the rest of the example program. In a real program, the real class would be in its own assembly and separate from the proxy class.

Definition at line 39 of file Proxy_Class.cs.

Member Function Documentation

◆ CreateProxy()

static IWorkByProxy CreateProxy ( )
inlinestatic

Retrieve a new instance of the proxy class.

Returns
An instance of a proxy class that implements the IWorkByProxy interface.

Definition at line 131 of file Proxy_Class.cs.

Referenced by Proxy_Exercise.Run().


The documentation for this class was generated from the following file: