Tafiti is an amazing Silverlight user interface on Windows Live Search services. Check it out!!!
Archive for August, 2007
Developing Windows Sidebar Gadgets: Design Guidelines
Posted by dariosantarelli on August 26, 2007
Here you can find a preliminary documentation containing all the design guidelines for developing Gadgets for Windows Vista Sidebar.
What are Gadgets? Well,
are applications giving users fast access to personally relevant information and simple tasks.
Posted in Microsoft Technology | 2 Comments »
How to create an ASP.NET 3.5 and Silverlight-enabled demo application
Posted by dariosantarelli on August 21, 2007
Steve Marx has recorded a 15 minute screencast to give you an idea of what’s possible with all the new ASP.NET 3.5 and SilverLight releases that came out last week.
Highlights:
- Searching and paging via ListView, DataPager, and LinqDataSource (all new ASP.NET controls with .NET 3.5).
- Video player via the Media control in the ASP.NET Futures July CTP (uses Silverlight 1.0 RC).
- Popup biographies and “more/less” collapsible details via the new .NET 3.5-compatible drop of the AJAX Control Toolkit.
- Back/forward buttons support via the History control in the ASP.NET Futures July CTP.
Resources:
Posted in AJAX, ASP.NET, Microsoft Technology, Web Development | 2 Comments »
SQL Internals Viewer 0.9 beta
Posted by dariosantarelli on August 16, 2007
I’d like to link a very useful tool for looking into the SQL Server storage engine and seeing how data is physically allocated, organised and stored: SQL Internals Viewer.
The features currently implemented regard allocation (GAM, SGAM, IAM), page viewing and SQL editing. You can download it here.
Very Cool!!!
Posted in Uncategorized | Leave a Comment »
Extension Methods in C#
Posted by dariosantarelli on August 6, 2007
An interesting feature of the .NET Framework 3.5 is that any set of methods available on an instance of a particular type is open to extension. Effectively, adding new methods to existing types is now possible.By using extension methods, we can declare static methods that can be invoked using the instance method syntax. In order to declare an extension method we must specify the keyword this as the first parameter of the static method.
Let’s show an example:
1. We have a Customer class, which needs of another method “Logout”:
2. Instead of using an inherited class, we add the “Logout” method to our Customer class by declaring a static method which can be invoked directly in any Customer class instance.
3. Finally, in our code we can invoke our “Logout” extension method in this way:

When extension methods are consumed, the argument that was declared with the keyword this is not passed, while all other arguments will be passed and seen by intellisense. So, the first argument in the declaration (keyword this) allows the compiler to determine the class instances on which the extension method is called.
Remember that extension methods, though declared as static, can be called only on instances values!!!
Posted in .NET, C#, Programming | 12 Comments »








.png)