예제 #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);
        }
예제 #2
0
 public void AddTransformation <T, TCast>(InternalType key, Func <T, T> transformation, object defaultValue)
 {
     _transformations[key.typeString] = MasterWrappers.MasterFunctionWrapper(transformation, defaultValue);
 }
예제 #3
0
 public Func <object, object> this[InternalType key] => _transformations[key.typeString];
예제 #4
0
 public void AddTransformation <T, TCast>(InternalType key, Func <object, TCast> transformation)
 {
     _transformations[key.typeString] = MasterWrappers.MasterFunctionWrapper(transformation);
 }