/Spss/SpssVariableKeyedCollection.cs
# · C# · 32 lines · 15 code · 3 blank · 14 comment · 0 complexity · 3d960bf360ba0452310a20d5f67403e7 MD5 · raw file
- //-----------------------------------------------------------------------
- // <copyright file="SpssVariableKeyedCollection.cs" company="Andrew Arnott">
- // Copyright (c) Andrew Arnott. All rights reserved.
- // Copyright (c) Brigham Young University
- // Copyright (c) Intereffective
- // </copyright>
- //-----------------------------------------------------------------------
-
- namespace Spss {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Collections.ObjectModel;
-
- internal class SpssVariableKeyedCollection : KeyedCollection<string, SpssVariable> {
- /// <summary>
- /// Initializes a new instance of the <see cref="SpssVariableKeyedCollection"/> class.
- /// </summary>
- public SpssVariableKeyedCollection()
- : base(StringComparer.OrdinalIgnoreCase) {
- }
-
- /// <summary>
- /// Gets the key for item.
- /// </summary>
- /// <param name="item">The item.</param>
- protected override string GetKeyForItem(SpssVariable item) {
- return item.Name;
- }
- }
- }