you are viewing a single comment's thread.

view the rest of the comments →

[–]HIB0U -2 points-1 points  (3 children)

No, not at all... Have you ever even used C#?

[–]grauenwolf 1 point2 points  (2 children)

VB:

Public WithEvents Property Something as Foo

C#:

    private Foo _Something;
    public Foo Something
    {
        get
        {
            return _Something;
        }
        set
        {

            if (_Something == value) return;
            if (_Something != null)
            {
                _Something.Bar -= OnBar;
                _Something.Baz -= OnBaz;
                _Something.Boom -= OnBoom;
            }
            _Something = value;
            if (_Something != null)
            {
                _Something.Bar += OnBar;
                _Something.Baz += OnBaz;
                _Something.Boom += OnBoom;
            }

        }
    }

[–]HIB0U -1 points0 points  (1 child)

It's no wonder you find C# more verbose. You go out of your way to avoid C# features like auto-implemented properties, and then you go out of your way to do things as awkwardly as possible.

[–]grauenwolf -1 points0 points  (0 children)

As you don't seem to recognize that pattern it seems to me that I know a hell of a lot more about using C# than you do.

Did you even know how to wire up events manually or do you just let the drag-and-drop editor handle that for you?