public virtual bool Equals(IStreamedDataInfo obj)
        {
            if (obj == null)
            return false;

              if (GetType () != obj.GetType ())
            return false;

              var other = (StreamedValueInfo) obj;
              return DataType.Equals (other.DataType);
        }
Exemple #2
0
        public virtual bool Equals(IStreamedDataInfo obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (StreamedSequenceInfo)obj;

            return(DataType.Equals(other.DataType) && ItemExpression.Equals(other.ItemExpression));
        }
Exemple #3
0
        public virtual bool Equals(IStreamedDataInfo obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (StreamedValueInfo)obj;

            return(DataType.Equals(other.DataType));
        }
        public override IStreamedDataInfo GetOutputDataInfo(IStreamedDataInfo inputInfo)
        {
            if (inputInfo == null)
            {
                throw new ArgumentNullException("inputInfo");
            }

            var sequenceInfo = inputInfo as StreamedSequenceInfo;

            if (sequenceInfo == null)
            {
                throw new ArgumentException(string.Format("Parameter 'inputInfo' has unexpected type '{0}'.", inputInfo.GetType()));
            }

            return(GetOutputDataInfo(sequenceInfo));
        }