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

Properties that are arrays with JustCode in VB.NET

1 Answer 75 Views
Code Generation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan Aucott
Top achievements
Rank 1
Dan Aucott asked on 26 Apr 2013, 02:07 PM
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()
			Get
				Return Me._MyArray
			End Get
			Set
				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
			Get
				Return Me._MyArray2
			End Get
			Set
				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 :)

Dan

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 29 Apr 2013, 04:24 PM
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,
Zdravko
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.
Tags
Code Generation
Asked by
Dan Aucott
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or