MessagePropertyDescriptionCollection.cs 781 B

1234567891011121314151617181920212223242526
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Description
  5. {
  6. using System;
  7. using System.ServiceModel.Channels;
  8. using System.Collections.Generic;
  9. using System.Collections.ObjectModel;
  10. using System.Xml;
  11. using System.Runtime.Serialization;
  12. public class MessagePropertyDescriptionCollection : KeyedCollection<string, MessagePropertyDescription>
  13. {
  14. internal MessagePropertyDescriptionCollection() : base(null, 4)
  15. {
  16. }
  17. protected override string GetKeyForItem(MessagePropertyDescription item)
  18. {
  19. return item.Name;
  20. }
  21. }
  22. }