Mike I highly recommend that you get a copy of C# & VB.NET Conversion Pocket Reference from O'Reilly. I leave it at arm's length. :-)
http://www.oreilly.com/catalog/csharpvbpr/index.html Julie -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mike Andrews Sent: Tuesday, May 23, 2006 2:36 PM To: [email protected] Subject: Re: [ADVANCED-DOTNET] RE: [ADVANCED-DOTNET] Converting from VB to C# Thank you very much. On 5/23/06, Jeff Ferguson <[EMAIL PROTECTED]> wrote: > > > I moved companies again and I have to use C# here. Here's some code > > that I can't seem to be able to convert to C#. > > Would someone be able to assist? > > > > > > Public Sub New() > > Me.New(Nothing) > > End Sub > > > > Public Sub New(ByVal pParent As Object) ... > > End Sub > > Constructors call other constructors with code following a colon, > which follows constructor declarations: > > public class MyClass > { > public MyClass() : this(null) > { > } > > public MyClass(object Parent) > { > } > } > > In this context, the keyword "this" is used to represent the constructor. > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
