Skip to content

Instantly share code, notes, and snippets.

@noqisofon
Created November 17, 2010 04:16
Show Gist options
  • Select an option

  • Save noqisofon/702965 to your computer and use it in GitHub Desktop.

Select an option

Save noqisofon/702965 to your computer and use it in GitHub Desktop.
簡単なリモートオブジェクト。
using std;
using runtime.remoting;
using runtime.remoting.channels;
using runtime.remoting.channels.ipc;
namespace sample.demo.remotingipc {
/*
* MarshalByReferenceObject は runtime.remoting 名前空間に存在します。
*/
public class Counter extends MarshalByReferenceObject {
private let count_ = 0;
public get function count() : int {
return count_ ++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment