Skip to content

Conversation

@bernardnormier
Copy link
Member

It's now in sync with the C++ version.

#include "Memory.h"

using namespace std;
using namespace Memory;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch to namespace Server and no using namespace like in other C++ demos.

private readonly string _name;
private readonly List<Filesystem.NodePrx> _contents = new();

/// <inheritdoc/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently nothing to inherit currently as slice2cs neglects to generate doc-comments for server-side interfaces / classes.

private readonly List<Filesystem.NodePrx> _contents = new();

/// <inheritdoc/>
public override string Name(Ice.Current current) => _name;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike the C++ version, we can't define a MNode and reuse it. That's because XxxDisp_ is a class.

@bernardnormier bernardnormier merged commit 7692900 into zeroc-ice:main Feb 12, 2025
7 checks passed
@bernardnormier bernardnormier deleted the filesystem-cs branch June 18, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants