December 2005 - Posts

21 December 2005
Research Paper: Parametric Polymophism AKA Generics
Parametric Polymorphism or Type Parameters is more commonly known as Generics. Generics changes the way we see and use collections, classes and methods. On my previous presentation at PHINUG's General Assembly, I have discussed its overview and basic to adavanced usage. Parameter type constraints is... Read More...
Filed under:
15 December 2005
Deserialize serialized object but with different version/type of the object used on serialization
I have caught in a question in our local forum where the poster serialized an object, then he modify the definitions of the object such as adding more properties. Eventualy when you try to deserialize the object it will throw serialization exception possibly because the type used on serialization is... Read More...
Filed under:
11 December 2005
Let me introduce SHANE v0.1
SHANE stands for Simple Helper for codeAutomation in N-tier Environment (SHANE). This project started as just a set of T-Sql statements that generates data access classes and business objects for my projects. Yes T-sql statements... as in I run it thru SQL Query Analyzer to query tables, constraints... Read More...
Filed under: ,
06 December 2005
WeakReference type revisited
While waiting for our updated DB model and SP's for my project I had the chance to play again with my favorite language, C#. I visited my previous post about WeakReference type which I found realy cool, especially now that I'll be doing some Windows Forms again. This time I made more generic so it can... Read More...
Filed under:
04 December 2005
Code Challenge 1: create class CacheHelper<T> where T can be XmlDocument, TextFile, CustomObject or Any types passed plus more...
Ok, let's make it more exciting and challenging, I encourage all our registered PHINUG members and our friends who missed the Code Challenge last November 25 VS Launch Event or have found the code challenge easy, hehe ;). Purpose: This is a helper class that will help us cache and check if the particular... Read More...
Filed under:
02 December 2005
What is trace flag 1400
Trace flag 1400 is a startup parameter on Sql Server 2005 if you want to enable its Database Mirroring feature. By default this feature is disabled and was introduced for evaludation purposes only. Microsoft confers no warrantees and support on production databases that uses Database Mirroring because... Read More...
02 December 2005
What is a WeakReference object
WeakReference helps you maintain a reference to an object but doesnt prevent the CLR from reclaiming it when the garbage collection occurs. I find this useful for windows applications because you can easily create Cache-like object especially for objects that consumes a lot of memory (files, streams... Read More...
Filed under:
01 December 2005
VS 2005 IDE: Shortcuts Lots of Shortcuts
I'l keep this post updated with lots of shortcuts available on Visual Studio 2005 IDE. For now, i just list few Ctrl+ Tab Shows window of all opened documents at the right side + the All windows docked on the right of IDE (ex. Solution Exp, Class View, Document Outline etc). Pressing tab combined with... Read More...
Filed under:
01 December 2005
Howto: Create Temporary Files
As i read a book, i ecnounter this. You can create a temporary file that automaticaly deleted when your program is terminated or the stream was closed. FYI, the Path object of System.IO namespace has its GetTempFileName method that returns a temporary filename: Ex, public class TemporaryFileStream :... Read More...
Filed under: