It is a great thing to announce that Dotneteers are now involved in the authoring team of a new book with working title “Visual Studio 2010 and .NET 4.0 Six-in-One”. The book is to be published by Wrox in Q1 next year in a team work of ten, including well-known authors, Hungarian MVPs and...
Just drop it in your page before the </body> tag: <script language="javascript" type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest); var oldClass = ""; function...
The LINQ over C# project is one of my pet peeves; I started it in the May of 2007. The goal of the project was to create a LINQ provider for C# language that would run over textual C# files to allow querying source code information directly on these files. Such queries would be like “What are the...
The yield return construct has been introduces by C# 2.0 in order to provide an easy way to create iterators returning IEnumerable<T> generic type instances. Many books and articles treat the construct, so I do not want to go into deep details about how it works. I’d rather like to share...
In the previous part of this mini-series I introduced a solution to inject code between a caller and the called method. This solution was based on the method handling architecture of the .NET CLR. In this part I show a few elements in the background of these feature set and deal with the performance...
When I worked on the semantic parser of the LINQ over C# project I reached the point to check if in a class declaration has a non-static base class (the C# language specification does not allow it). It must be easy with the Type class using reflection methods: public void IsStatic(Type type) { return...
The C# language specification treats in details how we can specify a literal string constant in the source code. This literal may contain escape sequences and also can be a verbatim string. It could be useful if we could use the syntax in external files like an application configuration file to read...
Everybody knows about, that you have to be very keen about using unmanaged resources (like filestreams, sharepoint objects, sockets, etc), disposing them whenever it's important, etc. But do we know all situations, that you have to be careful not to leak memory or not to let an unmanaged resource...