Esempio n. 1
0
        private static void SetConverterCache(Type fromType, Type toType, LokiConverter converter)
        {
            var pair = new TypePair {
                type1 = fromType, type2 = toType
            };

            s_CachedConverters.Add(pair, converter);
        }
Esempio n. 2
0
 public static bool TryGetConverter(Type fromType, Type toType, out LokiConverter converter)
 {
     converter = GetConverter(fromType, toType);
     return(converter != null);
 }