All posts by Justin Stenning

C# – Enable / Disable DWM Composition (Aero)

As a follow up for C# – Screen capture with Direct3D, here is how to enable and disable composition (Aero) on Windows Vista and Windows 7.
Continue reading C# – Enable / Disable DWM Composition (Aero)

Development Tools – NDepend

I have been playing with NDepend for the past week or so, and have found it to be a useful addition to an Architect’s/Developer’s artillery for larger more complex projects.

NDepend is a static code analysis tool written by Patrick Smacchia (C# MVP) that simplifies managing a large/complex .NET code base.

Whether you are responsible for QA, code reviews, architecture, or day to day development on large complex projects, you will most likely find something useful in NDepend.

Selection by Metrics (top 10 lines of code count) and highlighting of those methods in the Metrics View
Metrics View: Hightlighting the top 10 methods based on number of lines of code.

Continue reading Development Tools – NDepend

C# – Compile-time checking of property names for Data Bindings


Fatal error: Uncaught Error: Call to a member function id() on array in /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'PhoneNumber\nGet...') #3 /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('PhoneNumber\nGet...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highli in /home/derp4640/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36