RemObjects
                        Software Gears code

C# to Oxygene

Sign in or create your account | Project List | Help

Issue 39: this. keyword is not converted to self.

Reported by Anton Kasyanov, Apr 27, 2009

Conversion of code like

using System;

namespace ConsoleApplication14
{
    class ThisIssue
    {
        public Int32 Test {get; set;}

        public ThisIssue()
        {
            this.Test = 1;
        }
    }
}

results in

namespace ConsoleApplication14;

interface
uses
  System;
type
  ThisIssue = class
  assembly or protected
    constructor ThisIssue();
    property Test: Int32 read  write ;
  end;


implementation

constructor ThisIssue.ThisIssue();
begin
  this.Test := 1 <<<<<<<< note the 'this.' 
is still here
end;

end.

C# 'this.' keyword is not converted to 'self.' one

Comment 1 by Carlo Kok, Jun 8, 2009

Status: Accepted
Owner: carlokok

Comment 2 by Carlo Kok, Jun 8, 2009

Labels: Release:0.2
Status: Fixed

Created: 1 year 3 months ago by Anton Kasyanov

Updated: 1 year 1 month ago

Status: Fixed

Owner: Carlo Kok

Labels:
Priority:Medium
Type:Defect
Release:0.2