Incorrect Decompile Syntax

2 posts, 0 answers
  1. Russ
    Russ avatar
    49 posts
    Member since:
    Sep 2006

    Posted 19 Jun 2012 Link to this post

    The syntax when decompiling and checking for nothing in VB.net is invalid:

    JustDecompile:

    Public Property MaxDate As DateTime
        Get
            If (Me.ViewState("MaxDate") <> Nothing) Then
                Return DirectCast(Me.ViewState("MaxDate"), DateTime)
            Else
                Return New DateTime(2099, 12, 31)
            End If
        End Get

    Correct Syntax:

    Public Property MaxDate As DateTime
        Get
            If (Me.ViewState("MaxDate") IsNot Nothing) Then
                Return DirectCast(Me.ViewState("MaxDate"), DateTime)
            Else
                Return New DateTime(2099, 12, 31)
            End If
        End Get
  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 22 Jun 2012 Link to this post

    Hi,

     Thanks for letting us know about this. We'll definitely fix it.

    Regards,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top