DCSIMG
.NET 2.0 - IHateSpaghetti {code}

IHateSpaghetti {code}

VSX, DSL and Beyond by Eyal Lantzman

Syndication

Coding / Architecture

Extensibility /DSL

Projects

Articles

Browse by Tags

All Tags » .NET 2.0 (RSS)
GDI vs GDI+ text rendering and measuring
I was investigate a GDI/GDI+ related bug the other day and I found out that GDI+ doesn’t render RTL text very well. In order to render it correctly you need to render it using GDI. GDI+ Text rendering This is done by Graphics.DrawString(…) / Graphics.MeasureString(..) GDI Text rendering This is done by TextRenderer.DrawText(..) / TextRenderer.MeasureText(…) The interesting thing about GDI text measuring is that it sometimes the measured size might be larger than the maximum size so be aware of that...

Posted by Eyal | with no comments

InfoQ: A Formal Performance Tuning Methodology: Wait-Based Tuning
Although the author writes about java applications the concepts are the same for .NET and supported to some extent by Visual Studio Test Edition Here's the summery: "Performance tuning was once more “art” than “science”, but after a combination of abstract analysis and trial-and-error, wait-based tuning has proven to make the exercise far more scientific and far more effective. Wait-based tuning begins by performing a wait-point analysis of an application’s architecture in order to identify...

Posted by Eyal | 1 comment(s)

Tools day - come and get them
In the last weekend there were number of tools/frameworks that were published/upgraded/etc FxCop 1.36 - .NET Code Analysis Tool for Microsoft .NET Framework Design Guidelines - documentation and download 200+ bug fixes that reduce noise, missing analysis and rule crashes Support for analyzing anonymous methods and lambda expressions New option for skipping analysis over tool generated code Spell checker libraries now ship in the box Changes in the way references are resolved and located Better support...

Posted by Eyal | 2 comment(s)

NDepend v2.9.1 feature - Source files rebasing
Source files rebasing enables a common CI scenario where the code is compiled in one location and analyzed in another one. One useful scenario is during 2 builds comparison. Usually, analysis results are done the same way and thus, source files paths are the same both in older and newer analysis results. In this condition, when trying to compare 2 versions of a source file NDepend tells that because the 2 paths are the same, it can’t compare the source files. A solution to this problem is to fetch...

Posted by Eyal | with no comments

.Net Deadlock Detector - cool tool for your toolkit
I found a great tool that detects deadlocks using debugging tools for windows very interesting approach! The tool does not require to have the code re-compiled in any way or form, with any external dependencies, nor reference any external library or have you modify your code to use any special type of locks inside your code It works on release builds with no PDB files It works on running processes or previously captured memory dumps It detects deadlocks across multiple threads and returns detailed...

Posted by Eyal | with no comments

Creating AOP IL Emitting framework – Part 3
In the previous post I talked about how to create a simple, not really helpful (yet), proxy class. In this post I'll add, for each method, the complete implementation - includes try-catch block and method calls the to intercepting library that will in turn propagate the call to all the registered advices based on the pointcusts. What do I need in order to accomplish this? Well, I saw how to call methods, I'm missing the try catch part, the pointcuts and generics. I'll leave generics for...

Posted by Eyal | 3 comment(s)

Creating AOP IL Emitting framework – Part 2
I managed to write some code from the last post in this series and I got a name for the project - InterceptIt and I uploaded the initial drop. I created IL emitter helper class that will be in charge of declaration of variables, constants, members, methods, constructors, properties and method and constructor invocation. Variables: Helper class overview: When creating a constructor or method the returned parameter is IGenerationContext that provides access to the ILGenerator for that context. IGenerationContext...

Posted by Eyal | 1 comment(s)

Creating AOP IL Emitting framework – Part 1
This is the 1st post in a series of posts regarding the issues involved with creation of AOP framework. ...

Posted by Eyal | 1 comment(s)

List of .NET 2.0 and C# 2.0 new features
When i gathered more info for the previous post i've stumbled on the following page . Patrick Smacchia compiled a list of various .net 2.0 additions worth mentioning (see if you aware of all the addition in you field of work :-) ). Very handy for the if you are upgrading you skills from .NET 1.x

Posted by Eyal | with no comments

תגים:

New types and methods for .NET 2.0 and 3.0 SP1 (red bits)
With the release on .NET 3.5 there will be changes in the "red bits", so called .NET 2.0 and 3.0 libraries and they are supposed to be minor changes (as opposed to "green bits" = new libraries). New additions to GC suggest that the developer will gain more control over how the GC functions. And you can fine tune it to you needs. The complete list of the "red bits" is available here .

Posted by Eyal | with no comments

תגים:,