Ejemplo n.º 1
0
        public TypeToTypeMapping(Type source, Type target, VariantSet variants) : base(source, variants)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            _target = target;
        }
Ejemplo n.º 2
0
        public Mapping(Type source, VariantSet variants)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            if (variants == null)
            {
                throw new ArgumentNullException(nameof(variants));
            }

            _source   = source;
            _variants = variants;
        }
 public SerializableVariant(IVariant variant)
 {
     _typeRef = variant.GetType();
     _name    = variant.Name;
 }