andrei hooba

andrei hooba

  • NA
  • 63
  • 24k

Help converting as3 function to c#

Jan 11 2012 1:33 PM
hello,

this is the code, and I'm interested how can i convert the bolded functions to c#
i found this function IPdxWriter , but i didnt figure it out.. see link bellow.
http://www.vmware.com/support/developer/vfabric-gemfire/nc36-csharp-api/html/45418841.htm

  public class _-Q2 extends Object implements _-99
  {
  private var _version:int = 0;
  public var userID:int = 0;
  public var sessionID:String = "";
  public var version:String = "";
  private var factionID:int;
  public static const ID:int = 3;


  public function _-Q2(param1:int = 0, param2:String = "", param3:String = "", param4:int = 0)
  {
  this.userID = param1;
  this.sessionID = param2;
  this.version = param3;
  this.factionID = param4;
  return;
  }// end function


  public function _-2F() : int
  {
  return ID;
  }// end function

  public function _-hx() : int
  {
  return 0;
  }// end function

  public function _-wk() : int
  {
  return this._version;
  }// end function

  public function _-wx() : int
  {
  return 8;
  }// end function

  public function _-ME(param1:IDataInput) : void
  {
  this._version = param1.readShort();
  this.userID = param1.readInt();
  this.userID = param1.readShort();
  this.sessionID = param1.readUTF();
  this.version = param1.readUTF();
  return;
  }// end function

  public function _-Oc(param1:IDataOutput) : void
  {
  param1.writeShort(ID);
  param1.writeShort(this._-hx());
  param1.writeInt(this.userID);
  param1.writeShort(this.factionID);
  param1.writeUTF(this.sessionID);
  param1.writeUTF(this.version);
  return;
  }// end function

  }

Answers (14)