Ejemplo n.º 1
0
        public AttributeTransformingCursor(CaseCursor originalCursor, AttributeTransformer transformer)
        {
            if (transformer == null)
            {
                throw new ArgumentNullException(nameof(transformer));
            }

            cursor  = originalCursor ?? throw new ArgumentNullException(nameof(originalCursor));
            getters = transformer.GetTransformingGetters(originalCursor) ?? throw new ArgumentNullException(nameof(getters));
            binding = transformer.AttributeBinding ?? throw new ArgumentNullException(nameof(binding));
        }
Ejemplo n.º 2
0
 public AttributeTransformingCaseFrame(ICaseFrame frame, AttributeTransformer transformer) : base(frame)
 {
     this.transformer = transformer ?? throw new ArgumentNullException(nameof(transformer));
 }