Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I found in VS.NET 2002 and 2003 big BUG.

Try to write one Property definition in VB.NET.

Such like this:

 

'-------Code VB.NET-----------

Public Class MyClass

 

Private _strMyProperty As String

 

Public Property MyProperty As String

Get

Return Me._strMyProperty

End Get

Set (ByVal Value As String)

Me._strMyProperty = Value

End Set

End Property

 

End Class

'------------------

 

Next try to build the region on this property in this way:

 

'-------Code VB.NET-----------

Public Class MyClass

 

Private _strMyProperty As String

 

#Region " Public Property MyProperty As String "

 

Public Property MyProperty As String

Get

Return Me._strMyProperty

End Get

Set (ByVal Value As String)

Me._strMyProperty = Value

End Set

End Property

 

#End Region

 

End Class

'------------------

 

Collapse this Region which contains the Property definition.

If you made the Region on the Property definition try to write some different property upper to this Property such like this:

 

 

'-------Code VB.NET-----------

Public Class MyClass

 

Private _strMyProperty As String

Private _strMyNextProperty As String

 

Public Property MyNextProperty As String

Get

Return Me._strMyNextProperty

End Get

Set

Me._strMyNextProperty

End Set

End Property

 

#Region " Public Property MyProperty As String "

 

Public Property MyProperty As String

Get

Return Me._strMyProperty

End Get

Set (ByVal Value As String)

Me._strMyProperty = Value

End Set

End Property

 

#End Region

 

End Class

'------------------

 

In my instalation of VS.NET 2003 I am not able to finish the definition of the property which i defined as MyNextProperty. I have the message from VS.NET 2003. After I write the text:

 

Public Property MyNextProperty As String

 

and I press the enter the VS.NET 2003 Editor dosen't finish the definition and the intellisence dosen't work after I print the definition of Get by myself.

 

Public Property MyNextProperty As String

Get

Me. '<- Intellisence dosen't work

 

I send this BUG to the microsoft in Poland. They do nothing.

I told about this BUG peoples from microsoft which were on the Cebit 2004 in Hannower and they do nothing.

 

With Regards

Tomasz Bekasiewicz

tbekasiewicz@poczta.onet.pl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...