Properties that are arrays with JustCode in VB.NET

Thread is closed for posting
2 posts, 0 answers
  1. Dan Aucott
    Dan Aucott avatar
    9 posts
    Member since:
    Oct 2009

    Posted 26 Apr 2013 Link to this post

    Hi again... 

    Thought I'd drop this one on you as well.  In VB.NET you can declare a variable that is an array thusly:

    		Private _MyArray() As Integer

    If you then ask JustCode to create a property for said variable, you get this:

    		Public Property MyArray() As Integer()
    				Return Me._MyArray
    			End Get
    				Me._MyArray = Value
    			End Set
    		End Property

    So far so good.

    Now let's try it with a subtle change:

    		Private _MyArray2() As Int32

    And create the property:

    		Public Property MyArray2() As Int32
    				Return Me._MyArray2
    			End Get
    				Me._MyArray2 = Value
    			End Set
    		End Property

    Spot the non-deliberate mistake...  That's right.  It's trying to get / set a single Int32 instead of the Int32() that it should be doing.

    Thought I'd mention it :)

  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 29 Apr 2013 Link to this post

    Hello Dan,

     Thanks for bringing this to our attention.
    I have made a pending task in our product backlog and we will do our best ti fix it as soon as possible.
    Thank you.

    Kind regards,
    the Telerik team
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Back to Top