Invalid C# property setter when decompiling VB.NET

2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Oct 2012

    Posted 15 Oct 2012 Link to this post

    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
            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
            DateTime dateTime = this.mdtmArchiveDateTime;
            return dateTime;
            this.mdtmArchiveDateTime = Value;
  2. Yordan Dikov
    Yordan Dikov avatar
    69 posts

    Posted 17 Oct 2012 Link to this post

    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.

    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top