Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if ((obj == null) || !this.GetType().Equals(obj.GetType()))
            {
                return(false);
            }

            InternalType other = (InternalType)obj;

            return(typeString == other.typeString);
        }
Esempio n. 2
0
 public void AddTransformation <T, TCast>(InternalType key, Func <T, T> transformation, object defaultValue)
 {
     _transformations[key.typeString] = MasterWrappers.MasterFunctionWrapper(transformation, defaultValue);
 }
Esempio n. 3
0
 public Func <object, object> this[InternalType key] => _transformations[key.typeString];
Esempio n. 4
0
 public void AddTransformation <T, TCast>(InternalType key, Func <object, TCast> transformation)
 {
     _transformations[key.typeString] = MasterWrappers.MasterFunctionWrapper(transformation);
 }