/// <summary>
        /// Initializes a new instance of the <see cref="StreamMemberAdapter{TSource, TMember, TAdapter, TDestination}"/> class.
        /// </summary>
        /// <param name="path">The path to the member.</param>
        public StreamMemberAdapter(string path)
        {
            // Create the source to stream member adapter
            this.streamMemberAdapter = Activator.CreateInstance(typeof(StreamMemberAdapter <TSource, TMember>), new object[] { path }) as StreamMemberAdapter <TSource, TMember>;

            // Create the stream member to destination adapter.
            this.streamMemberToDestinationAdapter = Activator.CreateInstance <TAdapter>();
        }
Example #2
0
        /// <inheritdoc/>
        public bool Equals(StreamMemberAdapter <TSource, TDestination> other)
        {
            if (other == null)
            {
                return(false);
            }

            if (object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(this.pathAccessors == other.pathAccessors);
        }
        /// <inheritdoc/>
        public bool Equals(StreamMemberAdapter <TSource, TMember, TAdapter, TDestination> other)
        {
            if (other == null)
            {
                return(false);
            }

            if (object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(this.streamMemberAdapter == other.streamMemberAdapter &&
                   this.streamMemberToDestinationAdapter == other.streamMemberToDestinationAdapter);
        }