diff options
Diffstat (limited to 'cs/demo/Ice/value/ObjectFactory.cs')
-rwxr-xr-x | cs/demo/Ice/value/ObjectFactory.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/cs/demo/Ice/value/ObjectFactory.cs b/cs/demo/Ice/value/ObjectFactory.cs index 64e65e00b04..91d856f527f 100755 --- a/cs/demo/Ice/value/ObjectFactory.cs +++ b/cs/demo/Ice/value/ObjectFactory.cs @@ -7,29 +7,29 @@ // // ********************************************************************** -
-using System.Diagnostics;
-
-class ObjectFactory : Ice.LocalObjectImpl, Ice.ObjectFactory
-{
- public virtual Ice.Object create(string type)
- {
- if(type.Equals("::Printer"))
- {
- return new PrinterI();
- }
-
- if(type.Equals("::DerivedPrinter"))
- {
- return new DerivedPrinterI();
- }
-
- Debug.Assert(false);
- return null;
- }
-
- public virtual void destroy()
- {
- // Nothing to do
- }
-}
+ +using System.Diagnostics; + +class ObjectFactory : Ice.LocalObjectImpl, Ice.ObjectFactory +{ + public virtual Ice.Object create(string type) + { + if(type.Equals("::Printer")) + { + return new PrinterI(); + } + + if(type.Equals("::DerivedPrinter")) + { + return new DerivedPrinterI(); + } + + Debug.Assert(false); + return null; + } + + public virtual void destroy() + { + // Nothing to do + } +} |