Example #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));
        }
Example #2
0
 public AttributeTransformingCaseFrame(ICaseFrame frame, AttributeTransformer transformer) : base(frame)
 {
     this.transformer = transformer ?? throw new ArgumentNullException(nameof(transformer));
 }