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 DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to