Ejemplo n.º 1
0
 public static void AddCast(Type type, Mappings.PropertyCastAttribute cast)
 {
     lock (mCasts)
     {
         if (!mCasts.ContainsKey(type))
         {
             mCasts.Add(type, cast);
         }
     }
 }
Ejemplo n.º 2
0
 internal static Mappings.PropertyCastAttribute GetCast(Type type)
 {
     Mappings.PropertyCastAttribute result = null;
     mCasts.TryGetValue(type, out result);
     return(result);
 }
Ejemplo n.º 3
0
 public static void AddCast <T>(Mappings.PropertyCastAttribute cast)
 {
     AddCast(typeof(T), cast);
 }