njsokalski
Well-known member
- Joined
- Mar 16, 2011
- Messages
- 102
- Programming Experience
- 5-10
I have a class that has a property declared as follows:
Public Property Position As Byte()
Very simple property, nothing complicated. However, in Visual Studio 2010 when accessing this property, I type the following (temp is just the name of a variable):
temp.Position(1)
but Visual Studio 2010 enters the following code:
temp.Position(Int16)
It's like Intellisense wants to use Int16 instead of 1, but the property is an array, so why would it not want me to put an index? Why is it doing this, and how can I fix it? Thanks.
Public Property Position As Byte()
Very simple property, nothing complicated. However, in Visual Studio 2010 when accessing this property, I type the following (temp is just the name of a variable):
temp.Position(1)
but Visual Studio 2010 enters the following code:
temp.Position(Int16)
It's like Intellisense wants to use Int16 instead of 1, but the property is an array, so why would it not want me to put an index? Why is it doing this, and how can I fix it? Thanks.