Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpssCasesCollectionEnumerator"/> class.
 /// </summary>
 /// <param name="cases">The cases.</param>
 internal SpssCasesCollectionEnumerator(SpssCasesCollection cases)
 {
     if (cases == null)
     {
         throw new ArgumentNullException("cases");
     }
     this.Cases = cases;
     this.Reset();
 }
Example #2
0
        /// <summary>
        /// Creates an instance of the <see cref="SpssCase"/> class.
        /// </summary>
        protected internal SpssCase(SpssCasesCollection cases, int position)
        {
            this.Cases    = cases;
            this.Position = position;

            // Clear out all variables explicitly to prevent SPSS from assuming
            // garbage characters in those data areas.
            if (cases.IsAppendOnly)
            {
                this.ClearData();
            }
        }
Example #3
0
        /// <summary>
        /// Creates an instance of the <see cref="SpssCase"/> class.
        /// </summary>
        protected internal SpssCase(SpssCasesCollection cases, int position)
        {
            this.Cases = cases;
            this.Position = position;

            // Clear out all variables explicitly to prevent SPSS from assuming
            // garbage characters in those data areas.
            if (cases.IsAppendOnly)
            {
                this.ClearData();
            }
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpssCasesCollectionEnumerator"/> class.
 /// </summary>
 /// <param name="cases">The cases.</param>
 internal SpssCasesCollectionEnumerator(SpssCasesCollection cases)
 {
     if (cases == null)
     {
         throw new ArgumentNullException("cases");
     }
     this.Cases = cases;
     this.Reset();
 }