Browse by Tags
All Tags »
.NET (
RSS)
This error was resulted in a specific scenario where I tried to pull a service metadata using .NET MetadataExchangeClient. The reason was that the metadata consisted with more metadata references than the limit defined on my MEXClient instance. (The default...
I finally had the chance to look into the NDepend tool. In short: " NDepend is a tool that simplifies managing a complex .NET code base. Architects and developers can analyze code structure, specify design rules, plan massive refactoring, do effective...
I have been in vacation for the last 2.5 weeks. Myself and my Fiance in a vehicle driving around the united states. We've done the popular route - San Francisco --> Los Angeles (Through Highway 1, Amazing!) --> Las Vegas A lot of ruckus in that...
The PDC had started, Unfortunately - I'm not there. Next time I hope :) Lots of buzz is out there already! - Visual Studio 2010 and .NET 4.0 CTP is available for download ! - Windows Azure Windows® Azure is a cloud services operating system that serves...
I had no idea.. but but.. but but.. :) Great thing! Check Scott's post for all the details. " What's the story? Well, T4 is a code generator built right into Visual Studio. To be clear, you HAVE THIS NOW on your system…go play. Now's...
One of the common scenarios of casting in daily use of code is the need to check if an instance is of a given type, if so - perform actions on it. Some developers tend to do as following: if (foo is Bar ) { Bar b1 = ( Bar )foo; //Do Stuff.. } A word about...
There's a whole buzz about the .NET Framework 4.0, sweet stuff is coming. Read Damir's post for more information. Obviously, this isn't everything.. - There will be new modeling and architecture tools for working against the code - The Team...
Visit the CodeProject article for futher details. Download Dynamite library (including demo) - 35.7KB The library proides easy way for sorting arrays, enumerables, queryables and dataset as well. The sweet gem about it is the ability to integrate it into...
Via this post . Following is a quick way to execute code and limiting it within a certain timeout. Note that the code spawns a new thread. A better safer code would be using the ThreadPool and wait on the WaitHandle. Thread t = new Thread ( () => ...
A nice way to convert text to title-case using the .NET framework. Title Case - First Letter Of Every Word Is Upper CultureInfo .CurrentCulture.TextInfo.ToTitleCase("some text"); //Returns "Some Text" Note that you should ensure the...
Via this post . Following mime types should be registered in ISS, when using VSTO and ClickOnce: .application application/x-ms-application .manifest application/x-ms-manifest .deploy application/octet-stream .deploy application/x-ms-vsto
Very simple piece of code to get the path where the executing assembly is located. private static string GetApplicationPath() { return Path .GetDirectoryName( Assembly .GetExecutingAssembly().Location); }
The CTP version of Velocity had been released a while back. It certainly has great benefits. Here's a link to Bart's post going over this release, worths the check. From Bart's post : Introduction But first... what's in a name? Multi-tiered...
I implemented a Security Token Service in WCF as part of our WS-Trust solution here in our project. I needed a certificate to apply the message security and all that WS-Federation requires. I needed to set it up quickly for a temporary purpose, thus I...
Via Nicholas Allen's post . "new tool on CodePlex the other day called the PInvoke Interop Assistant that automatically converts between managed and unmanaged type signatures. In addition to converting API functions, it also pulls together all...
Next page »