Esempio n. 1
0
 public static void AddCast(Type type, Mappings.PropertyCastAttribute cast)
 {
     lock (mCasts)
     {
         if (!mCasts.ContainsKey(type))
         {
             mCasts.Add(type, cast);
         }
     }
 }
Esempio n. 2
0
 public static void AddCast <T>(Mappings.PropertyCastAttribute cast)
 {
     AddCast(typeof(T), cast);
 }