Wizard for creating a new user control is DIFFERENT on code generation than Forms, inconsistend by a

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Make a new user control component via the VSNet wizard gives the following
dispose method...

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
}

Uaing the wizard to make a new Form generates the following...

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}




Can you spot the lazy programmer that cant use braces, small i know but its
piiss damn anoying and just lazy on his part.

Lines like that just highlight to me hes a lazy azzed dev that takes the
easy way out.

No braces on the if block, supose its not as bad as that shhity K&R layout.
 
H

Herfried K. Wagner [MVP]

* "news.microsoft.com said:
Make a new user control component via the VSNet wizard gives the following
dispose method...

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
}

Uaing the wizard to make a new Form generates the following...

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

Can you spot the lazy programmer that cant use braces, small i know but its
piiss damn anoying and just lazy on his part.

Lines like that just highlight to me hes a lazy azzed dev that takes the
easy way out.

No braces on the if block, supose its not as bad as that shhity K&R layout.

I hope they will change the templates in a future release. Really
annoying.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Dilbert's words of wisdom #18: Never argue with an idiot. They drag you down
to their level then beat you with experience.
 
N

news.microsoft.com

Yes!! Severity 1 prio 1!! Hotfix required!!
:D

Herfried K. Wagner said:
layout.

I hope they will change the templates in a future release. Really
annoying.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Dilbert's words of wisdom #18: Never argue with an idiot. They drag you down
to their level then beat you with experience.
 
N

news.microsoft.com

Why dont they use the same code its obvious its different code for the SAME
purpose. 2nd flaw :D
 
T

The Posting One

You can modify any of the built-in code, I changed it to match my coding
style. Dig around in the VS directory (do a search).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top