summaryrefslogtreecommitdiff
path: root/cs/demo/book/simple_filesystem/FileI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/book/simple_filesystem/FileI.cs')
-rwxr-xr-xcs/demo/book/simple_filesystem/FileI.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/cs/demo/book/simple_filesystem/FileI.cs b/cs/demo/book/simple_filesystem/FileI.cs
index 9b549945b60..67ee9cceaf0 100755
--- a/cs/demo/book/simple_filesystem/FileI.cs
+++ b/cs/demo/book/simple_filesystem/FileI.cs
@@ -16,44 +16,44 @@ public class FileI : FileDisp_
public FileI(string name, DirectoryI parent)
{
- _name = name;
- _parent = parent;
+ _name = name;
+ _parent = parent;
- Debug.Assert(_parent != null);
+ Debug.Assert(_parent != null);
- // Create an identity
- //
- Ice.Identity myID = _adapter.getCommunicator().stringToIdentity(Ice.Util.generateUUID());
+ // Create an identity
+ //
+ Ice.Identity myID = _adapter.getCommunicator().stringToIdentity(Ice.Util.generateUUID());
- // Add the identity to the object adapter
- //
- _adapter.add(this, myID);
+ // Add the identity to the object adapter
+ //
+ _adapter.add(this, myID);
- // Create a proxy for the new node and add it as a child to the parent
- //
- NodePrx thisNode = NodePrxHelper.uncheckedCast(_adapter.createProxy(myID));
- _parent.addChild(thisNode);
+ // Create a proxy for the new node and add it as a child to the parent
+ //
+ NodePrx thisNode = NodePrxHelper.uncheckedCast(_adapter.createProxy(myID));
+ _parent.addChild(thisNode);
}
// Slice Node::name() operation
public override string name(Ice.Current current)
{
- return _name;
+ return _name;
}
// Slice File::read() operation
public override string[] read(Ice.Current current)
{
- return _lines;
+ return _lines;
}
// Slice File::write() operation
public override void write(string[] text, Ice.Current current)
{
- _lines = text;
+ _lines = text;
}
public static Ice.ObjectAdapter _adapter;