¡@

Home 

c# Programming Glossary: type2cache

General type conversion without risking Exceptions

http://stackoverflow.com/questions/2111280/general-type-conversion-without-risking-exceptions

Type ConversionCache type1Cache null ConversionCache type2Cache null if _Types.ContainsKey s.GetType type1Cache new Dictionary.. converted this type before so create a new conversion type2Cache new ConversionCache s.GetType value.GetType Add to the cache.. Add to the cache type1Cache.Add value.GetType type2Cache else type2Cache type1Cache value.GetType Attempt the parse..