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