Robert Half Technology
 Search
Friday, October 10, 2008 ..:: Community Forum ::.. Register  Login
 Community Forum Minimize
     
  .NET Development  MCTS 70-526 Study Group  TechTidBits  

 TechTidBits 
 
Flip
72 posts
TechTidBits
Posted: 10 Oct 07 6:11 PM (N/A)
 
I'm going to try to keep a running thread about the TechTidBits we talk about during the study group. I hope you enjoy them as much a I do investigating them.

The first TechTidBit we did was talking about
-Breaking the Stack,
-ref: http://www.codeproject.com/useritems/Exception_throw_n_throw.asp
-Tab Order
-taking about the TAB key, viewing/editing the tab order using the Designer
-Smart Tags
-CTRL+.
-App Icons
-using Visual Studio's UI has a sneaky interface for adding multiple icons to an ICO file
-16X16X256 and 32X32X256 are used by Windows in different ways, be safe, have one of each

Flip
72 posts
Re: TechTidBits #2
Posted: 10 Oct 07 6:14 PM (N/A)
 
-Environment.NewLine instead of VBCRLF, "\r\n", 10+ 13, etc
-Path.Combine()
-String.Empty
-String.IsNullOrEmpty() instead of using (YourString.Length == 0 || YourString == null || Your String = "") (or variations there of)
-Windows Vista SnippingTool.exe, AWESOME gem of a tool right within Vista!

Flip
72 posts
Re: TechTidBits #3
Posted: 10 Oct 07 6:17 PM (N/A)
 
-const vs readonly
-const
-Always static
-Evalutated at compile time
-Good for performance
-Initialized at declaration
-Must be integral type (not user defined type)
-readonly
-Both instance scope or static scope
-Evaluated at runtime
-Option to act like constant but set at runtime
-Initialized in declaration or code in constructor
-Can be complex object types with new keyword at initialization
-SQL Server object searches
-complex proc/sql OR
-xSQLSoftware
-http://www.xsqlsoftware.com/Product/Sql_Database_Object_Search.aspx
-Outlining and Regions
-AWESOME way to reduce extaneous code out of the way
Flip
72 posts
Re: TechTidBits #4
Posted: 10 Oct 07 6:20 PM (N/A)
 
-Type casting and type comparisons
-ToString()
try { DataGridItem item = (DataGridItem)mycontrol.Parent;
if (item.GetType().ToString() == "DataGridItem") { // Do something interesting here } }
catch (InvalidCastException ex) { }
-As
DataGridItem item = mycontrol.Parent as DataGridItem;
if (item != null) { // Do something interesting here }
-Is
DataGridItem item = mycontrol.Parent as DataGridItem;
if (item is DataGridItem) { // Do something interesting here }
-Reference: http://www.developer.com/net/csharp/article.php/3702346

-Cycle through clipboard - CTRL+SHIFT+V
-Reference: http://blogs.msdn.com/saraford/archive/2007/10/01/did-you-know-how-to-cycle-through-the-clipboard-ring-to-paste-different-things.aspx

-Naming Conventions
-hngHungarian
-Charles Simonyi while at XEROX PARC
-PascalCase
-Class name, method name, constants, delegates, enum types and values, event, event handlers, exceptions, static member fields, interface, properties
-Aka anything with public scope
-camelCase
-Instance fields, parameters
-Aka anything with private scope

 
   .NET Development  MCTS 70-526 Study Group  TechTidBits
 
 
   

Search   

Copyright 2008 Ottawa .NET Community   Terms Of Use  Privacy Statement
Portal engine source code is copyright 2002-2008 by DotNetNuke. All Rights Reserved