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

  • Thread starter Thread starter news.microsoft.com
  • Start date 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.
 
* "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.
 
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.
 
Why dont they use the same code its obvious its different code for the SAME
purpose. 2nd flaw :D
 
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).
 
Back
Top