C#Windows forms Caching

When developing C# windows application, we tend to reuse common datasource in serveral forms fo controls like combo bo, listbox. Caching is a good strategy reduce the round trip to database. I cache most of all my commonly used datasets improve loading time.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cache
{
public class Cache
{
static Dictionary _cache = new Dictionary();

public Cache() { }

public static bool AddToCache(string key, object obj)
{
try
{
_cache.Add(key, obj);
}
catch (ArgumentException)
{
return false;
}
return true;
}

public static object GetFromCache(string key)
{
object obj = null;
try
{
if (_cache.ContainsKey(key))
_cache.TryGetValue(key, out obj);
}
catch
{
}
return obj;
}

public static void ClearCache()
{
_cache.Clear();
}

}
}

Request yahoo serach marketing to reissue cheque to my actual name instead of account name

Sometime ago yahoo search marking was merge into mircosoft adcenter. Recently I receive a refund for one of my inactive account, totalling about $200 but it was issue to the account name created and not to my real name. Therefor I couldn’t cash the cheque. I log in to my account again trying find a email contact to ask to have the cheque reissue but all contact was remove except for a hotline number. I google and found the FAQ page which gave instructions on how to get my check reissue. http://advertisingcentral.yahoo.com/refund