-
.NET 2.0: Notes on Foundation Part 3 (C#)
Isolated Storage You use isolated storage in your .NET application if you want to save information on a hard drive without using a database or other means and still have safe access to it - meaning no need to worry if application has enough rights to do so. To create a store, use IsolatedStorageFile class, which is responsible for creating fil... Read More
-
Design Patterns: Introduction
I will be writing about design patterns. I believe design patterns should be part of your development tool as they provide you solutions to common problems that have been encountered by other developers before you. I will start with the most common design patterns such as: Mediator, Adapter, Proxy, Observer, Strategy, Decorator, Factory, Obser... Read More
-
ASP.NET 2.0: Crystal Reports – Fitting the report inside the available space in your web page
If you prefer displaying a crystal report to a web page where you have other stuff in it (like say a top and left menu bar with a bottom footnote), and you want to display it on the available space in the web page (not on the whole web page), and you find it spilling over, don’t worry there is a solution to that. When you drop the CrystalReport... Read More
-
.NET 2.0: Notes on Foundation Part 2 (C#)
Explicit Conversion The following are methods for explicit conversion: System.Convert, (type) cast operator, type.ToString, type.Parse, type.TryParse, and type.TryParseExact. Conversion in Custom Types The following are ways to provide conversion for your own types: conversion operators (which are new to .NET 2.0), ToString and Parse override... Read More
-
.NET 2.0: Notes on Foundation Part 1
Nullable Type In .NET 2.0, you can declare a variable as Nullable: Nullable<bool> b = null;// shorthand notationbool? b = null; String versus StringBuilder Strings are immutable in .NET. If you want to combine multiple strings, you can use String class’s Concat, Join, or Format methods or use StringBuilder class. Arrays To declare, ... Read More