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