PageRenderTime 33ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/Spss/SpssVariableKeyedCollection.cs

#
C# | 32 lines | 15 code | 3 blank | 14 comment | 0 complexity | 3d960bf360ba0452310a20d5f67403e7 MD5 | raw file
Possible License(s): LGPL-2.1
  1. //-----------------------------------------------------------------------
  2. // <copyright file="SpssVariableKeyedCollection.cs" company="Andrew Arnott">
  3. // Copyright (c) Andrew Arnott. All rights reserved.
  4. // Copyright (c) Brigham Young University
  5. // Copyright (c) Intereffective
  6. // </copyright>
  7. //-----------------------------------------------------------------------
  8. namespace Spss {
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Collections.ObjectModel;
  14. internal class SpssVariableKeyedCollection : KeyedCollection<string, SpssVariable> {
  15. /// <summary>
  16. /// Initializes a new instance of the <see cref="SpssVariableKeyedCollection"/> class.
  17. /// </summary>
  18. public SpssVariableKeyedCollection()
  19. : base(StringComparer.OrdinalIgnoreCase) {
  20. }
  21. /// <summary>
  22. /// Gets the key for item.
  23. /// </summary>
  24. /// <param name="item">The item.</param>
  25. protected override string GetKeyForItem(SpssVariable item) {
  26. return item.Name;
  27. }
  28. }
  29. }