new in C#
Posted on 2011-09-16
I am trying to learn C# from a VB background.
Normally in my classes I use a new sub to declare a new instance of the class objects. But when I try this in C# I run into all sorts of errors. Do you need to use the new sub in C# at all?
If you do, what would be the conversion for the code below?
Public Class GridFactory
Private GridFolderStyle As String
Private Property _Grid As Grid
Public Sub New()
GridFolderStyle = ApplicationConfiguration.GridPath.ToString
_Grid = New Grid()