C# Sample code from Developer Fusion https://www.developerfusion.com/t/csharp/code/ C# Sample code from Developer Fusion http://www.rssboard.org/rss-specification en-GB Thu, 28 Aug 2008 11:22:00 GMT Deep clone an object in .NET A simple code snippet that deep-copies an object by serializing and de-serializing using the BinaryFormatter http://www.developerfusion.com/code/8063/deep-clone-an-object-in-net/ http://www.developerfusion.com/code/8063/deep-clone-an-object-in-net/ Thu, 28 Aug 2008 11:22:00 GMT James Crowley Making a .NET app run on Vista with Administrator priviledges If you're targeting Windows Vista and your application requires administrator priviledges (such as accessing the program files directory), then it will fail unless you include a manifest so Windows knows. Here's how. http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/ http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/ Wed, 06 Aug 2008 09:35:00 GMT James Crowley Generate PDFs using C# and the free iTextSharp library Learn how to use the free iTextSharp library to load a PDF form, populate some dynamic fields, and then save out a flat PDF file. http://www.developerfusion.com/code/6623/dynamically-generating-pdfs-in-net/ http://www.developerfusion.com/code/6623/dynamically-generating-pdfs-in-net/ Sun, 15 Apr 2007 20:36:00 GMT James Crowley Interacting with TinyPic from C# The following tutorial will demonstrate how to interact with http://tinypic.com, an image mirroring service, directly from a C# application using the WebRobot component. http://www.developerfusion.com/code/5717/interacting-with-tinypic-from-c/ http://www.developerfusion.com/code/5717/interacting-with-tinypic-from-c/ Sat, 20 May 2006 02:00:00 GMT Fernando Sanchez Create PDF Files on fly in C# This sample code shows how to use the iText library to generate PDF files on the fly. The iText classes are very useful for people who need to generate read-only, platform independent documents containing text, lists, tables and images. http://www.developerfusion.com/code/5682/create-pdf-files-on-fly-in-c/ http://www.developerfusion.com/code/5682/create-pdf-files-on-fly-in-c/ Thu, 11 May 2006 07:59:00 GMT Salman Zafar Developing your first Visual WebGui application An introduction to Visual WebGui through a sample application. http://www.developerfusion.com/code/5639/developing-your-first-visual-webgui-application/ http://www.developerfusion.com/code/5639/developing-your-first-visual-webgui-application/ Sat, 29 Apr 2006 15:57:00 GMT Guy Peled Visual WebGui a unique approach to AJAX development Visual WebGui is not just another AJAX framework but rather a different approach to web application development, specially designed to simplify building highly complex applications like Outlook Web Access (OWA). Visual WebGui makes it possible for developers to create applications that were previously developed only by the "big guys". http://www.developerfusion.com/code/5638/visual-webgui-a-unique-approach-to-ajax-development/ http://www.developerfusion.com/code/5638/visual-webgui-a-unique-approach-to-ajax-development/ Sat, 29 Apr 2006 15:45:00 GMT Guy Peled Sorting and Searching Using C# Lists The support for lists in C# 2.0 makes sorting and searching very easy. This code snippet demonstrates how to create a list of Person objects (with name and age attributes), sort by name, sort by age and search based on age. http://www.developerfusion.com/code/5513/sorting-and-searching-using-c-lists/ http://www.developerfusion.com/code/5513/sorting-and-searching-using-c-lists/ Thu, 23 Mar 2006 15:46:00 GMT Craig Murphy The "Using" Statement in C# The using statement in the c# language allows us to define an scope for an object lifetime. This statement obtains the resource specified, executes the statements and finally calls the Dispose() method of the object to clean it up. http://www.developerfusion.com/code/5457/the-using-statement-in-c/ http://www.developerfusion.com/code/5457/the-using-statement-in-c/ Wed, 01 Mar 2006 15:18:00 GMT Xavier Larrea Sending Authenticated Emails in .NET 2.0 Learn what's changed with .NET 2.0 and how to send out emails using an SMTP server that requires authentication. http://www.developerfusion.com/code/5456/sending-authenticated-emails-in-net-20/ http://www.developerfusion.com/code/5456/sending-authenticated-emails-in-net-20/ Wed, 01 Mar 2006 15:13:00 GMT Xavier Larrea Using Microsoft Agent in C# Microsoft Agent is a new technology, which allows Programmer to create and use animated characters that can interact with end users. It also supports the Microsoft Speech API, which allows the character to speak with the user. http://www.developerfusion.com/code/5370/using-microsoft-agent-in-c/ http://www.developerfusion.com/code/5370/using-microsoft-agent-in-c/ Fri, 10 Feb 2006 16:14:00 GMT M M Harinath Checking Internet Availability using C# While developing Internet applications, this is important to check whether the internet connection is available or not. This snippet will be useful to achieve the above mentioned task. http://www.developerfusion.com/code/5346/checking-internet-availability-using-c/ http://www.developerfusion.com/code/5346/checking-internet-availability-using-c/ Fri, 03 Feb 2006 09:49:00 GMT M M Harinath Precise .NET Server Content Caching A simple demonstration of how to programatically use the caching facilities that ASP.NET offers. http://www.developerfusion.com/code/5303/precise-net-server-content-caching/ http://www.developerfusion.com/code/5303/precise-net-server-content-caching/ Sun, 29 Jan 2006 11:38:00 GMT Dimitrios Markatos Transactions made easy with .NET 2.0 One of the more significant improvement in .NET 2.0 is the transactions area. Now with a single line it becomes extremely easy to support transactional code blocks using the concept of “ambient” transaction thanks to TransactionScope in the System.Transactions namespace. http://www.developerfusion.com/code/5282/transactions-made-easy-with-net-20/ http://www.developerfusion.com/code/5282/transactions-made-easy-with-net-20/ Wed, 25 Jan 2006 01:18:00 GMT Xavier Larrea Applying XSL transformations to XML in .NET A simple demonstration of how to apply an XSL transformation to an XML file and save the output using .NET http://www.developerfusion.com/code/5247/applying-xsl-transformations-to-xml-in-net/ http://www.developerfusion.com/code/5247/applying-xsl-transformations-to-xml-in-net/ Thu, 19 Jan 2006 09:17:00 GMT Krishnan Using ASHX files to retrieve DB images Learn how to use the little-known Http Handler functionality of ASP.NET to serve images from a database. http://www.developerfusion.com/code/5223/using-ashx-files-to-retrieve-db-images/ http://www.developerfusion.com/code/5223/using-ashx-files-to-retrieve-db-images/ Sun, 15 Jan 2006 12:37:00 GMT Harry Pierson IP2Location Geolocation .NET Component in VB.NET IP2Location .NET component that translates IP address to country, city, region, latitude, longitude, ZIP code, ISP and domain name. Developers use this component for projects related to: 1. Display native language and currency; 2. Redirect based on country; 3. Digital rights management; 4. Prevent password sharing and abuse of service; 5. Reduce credit card fraud; 6. Web log stats and analysis; http://www.developerfusion.com/code/5159/ip2location-geolocation-net-component-in-vbnet/ http://www.developerfusion.com/code/5159/ip2location-geolocation-net-component-in-vbnet/ Fri, 06 Jan 2006 06:00:00 GMT IP2Location Inc Generate an Image of a Web Page Demonstrates how to fetch images and thumbnails of web pages using a hidden web browser control. http://www.developerfusion.com/code/4712/generate-an-image-of-a-web-page/ http://www.developerfusion.com/code/4712/generate-an-image-of-a-web-page/ Fri, 22 Jul 2005 15:50:00 GMT Alan Dean Reading Binary Data in C# How to read binary data from a file in C# - the right way! http://www.developerfusion.com/code/4696/reading-binary-data-in-c/ http://www.developerfusion.com/code/4696/reading-binary-data-in-c/ Tue, 14 Jun 2005 20:19:00 GMT Jon Skeet Using the Credential Management API Following secure development best practice, an application should obtain and store user credentials securely. Microsoft has provided a means to accomplish this on the desktop: the unmanaged Credential Management API, which exposes the capability to provide a standard login experience for the user which is also secure. This code demonstrates how to create a generic dialog implementation using this API. http://www.developerfusion.com/code/4693/using-the-credential-management-api/ http://www.developerfusion.com/code/4693/using-the-credential-management-api/ Thu, 28 Apr 2005 16:39:00 GMT Alan Dean