for(;;) == while(true)
= true! And here’s the proof.
= true! And here’s the proof.
We’ve all been there before, write a simple service with a simple method: As time goes by, the simple method gets more complicated, and the list of parameters grows and eventually simple method is overloaded to provide more variety and simple method is simple no more! A simple solution to this is the Request-Response pattern, …
By now, Windows 7 is almost old news and most of you would have been using or at least seen Windows 7 and one of the first things that should have caught your attention is the redesigned task bar. The new task bar are visually much more pleasant and functionally it has also introduced a …
You can find out some useful information about the OS your application is running in by using the Environment.OSVersion property: You can also easily check for the minimum OS version:
I stumbled across some interesting discussions on how they differ from non-static methods, here’s a summary of what I learnt. The Static Keyword In C# terms, “static” means “relating to the type itself, rather than an instance of the type”. You access a static member using the type name instead of a reference or a …
As you’re debugging and stepping through your code in Visual Studio, you will no doubt have come across the Call Stack window in Visual Studio: You can get access to the same stack trace information using the StackTrace and StackFrame class and this opens up some interesting possibilities. For instance, you can have a Log …
In C# there is no way to define a static method in an interface: This lack of static method can be painful at times, and on the surface one feels there is no reason why it can’t/shouldn’t be supported by the language. But after ploughing through forum discussions and numerous questions on StackOverflow I start …
Understanding the lack of static method in Interface in C# Read More »
For my line of work we use a number of tools to monitor and track user activities in our games, among these is a little known web app called ChartBeat. It provides real-time analytics data on what’s happening on your page, how many people are looking at your page, what are they looking at, etc. …
ChartBeat – real-time analytics tool for your website Read More »
JSON (JavaScript Object Notation) is a data transfer format widely adopted on the web because it’s lightweight compared to XML. I touched on the topic of JSON in an earlier post when I posted some extension methods for compressing/decompressing string. If you are unfamiliar with the JSON format or how it’s supported in .Net then …
In C#, there are two ways you can provide an alternative implementation of an inherited method: Override a virtual method Unlike Java where every method can be overridden by default unless marked with the final keyword, C# employs a safer, opt-in system where methods cannot be overridden unless marked with the virtual keyword. A virtual …
Hiding a base method vs Overriding a virtual method Read More »
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.