/// <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();
 }
Exemple #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();
            }
        }
Exemple #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();
            }
        }
 /// <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();
 }