Forum VB .Net Point class

Point class

Postby Cyclone103 » February 10th, 2010, 10:28 pm

Since some DLLs can't be used, and I can't actually seem to remember what Point is a part of, here is a simple Point class I wrote to help everyone out:
Code: Select all
    Public Class Point
        Dim _x As Integer
        Dim _y As Integer
        Public Property X() As Integer
            Get
                Return _x
            End Get
            Set(ByVal value As Integer)
                _x = value
            End Set
        End Property
        Public Property Y() As Integer
            Get
                Return _y
            End Get
            Set(ByVal value As Integer)
                _y = value
            End Set
        End Property
        Public Sub New(ByVal x As Integer, ByVal y As Integer)
            Me.X = x
            Me.Y = y
        End Sub
        Public Sub New()
            Me.X = 0
            Me.Y = 0
        End Sub
    End Class


Its nothing special, but I figured I'd save everyone the time.
Cyclone103
 
Posts: 155
Joined: January 18th, 2010, 6:47 pm

Re: Point class

Postby Oliver » February 12th, 2010, 10:52 am

Huh? I just checked, and the point class (and friends from system.drawing) are allowed...

Which specific point class did it complain about?
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Point class

Postby Cyclone103 » February 12th, 2010, 5:37 pm

Nevermind then, couldn't remember where Point was and figured it wasn't allowed or something.

Either way, it still works :P
Cyclone103
 
Posts: 155
Joined: January 18th, 2010, 6:47 pm


Return to VB .Net