This is a migrated thread and some comments may be shown as answers.

Invalid C# property setter when decompiling VB.NET

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 15 Oct 2012, 04:22 PM
If I decompile an assembly which contains a VB.NET class with this property (note that the assignment statement in the Setter uses Value with an uppper-case V)

Public Property ArchiveDateTime As DateTime
    Get
        Dim dateTime As DateTime = Me.mdtmArchiveDateTime
        Return dateTime
    End Get
    Set(ByVal value As DateTime)
        Me.mdtmArchiveDateTime = Value
    End Set
End Property


I get the following C# code which contains the upper-case Value (which is invalid):

 
public DateTime ArchiveDateTime
{
    get
    {
        DateTime dateTime = this.mdtmArchiveDateTime;
        return dateTime;
    }
    set
    {
        this.mdtmArchiveDateTime = Value;
    }
}

1 Answer, 1 is accepted

Sort by
0
Yordan Dikov
Telerik team
answered on 17 Oct 2012, 12:55 PM
Hello Mike,

 Thank you for pointing this out and for providing sample code to reproduce the issue. We've taken note of the problem, so you can expect improvements in one of our future updates. Stay tuned and don't hesitate to contact us about anything else that bothers you in JustDecompile.

Greetings,
Yordan Dikov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Yordan Dikov
Telerik team
Share this question
or