| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | |
| | | 6 | | namespace System.Net.NetworkInformation |
| | | 7 | | { |
| | | 8 | | public class IPAddressCollection : ICollection<IPAddress> |
| | | 9 | | { |
| | 0 | 10 | | protected internal IPAddressCollection() |
| | 0 | 11 | | { |
| | 0 | 12 | | } |
| | | 13 | | |
| | | 14 | | public virtual void CopyTo(IPAddress[] array, int offset) |
| | 0 | 15 | | { |
| | 0 | 16 | | throw NotImplemented.ByDesign; |
| | | 17 | | } |
| | | 18 | | |
| | | 19 | | public virtual int Count |
| | | 20 | | { |
| | | 21 | | get |
| | 0 | 22 | | { |
| | 0 | 23 | | throw NotImplemented.ByDesign; |
| | | 24 | | } |
| | | 25 | | } |
| | | 26 | | |
| | | 27 | | public virtual bool IsReadOnly |
| | | 28 | | { |
| | | 29 | | get |
| | 0 | 30 | | { |
| | 0 | 31 | | return true; |
| | 0 | 32 | | } |
| | | 33 | | } |
| | | 34 | | |
| | | 35 | | public virtual void Add(IPAddress address) |
| | 0 | 36 | | { |
| | 0 | 37 | | throw new NotSupportedException(SR.net_collection_readonly); |
| | | 38 | | } |
| | | 39 | | |
| | | 40 | | public virtual bool Contains(IPAddress address) |
| | 0 | 41 | | { |
| | 0 | 42 | | throw NotImplemented.ByDesign; |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() |
| | 0 | 46 | | { |
| | 0 | 47 | | return this.GetEnumerator(); |
| | 0 | 48 | | } |
| | | 49 | | |
| | | 50 | | public virtual IEnumerator<IPAddress> GetEnumerator() |
| | 0 | 51 | | { |
| | 0 | 52 | | throw NotImplemented.ByDesign; |
| | | 53 | | } |
| | | 54 | | |
| | | 55 | | public virtual IPAddress this[int index] |
| | | 56 | | { |
| | | 57 | | get |
| | 0 | 58 | | { |
| | 0 | 59 | | throw NotImplemented.ByDesign; |
| | | 60 | | } |
| | | 61 | | } |
| | | 62 | | |
| | | 63 | | public virtual bool Remove(IPAddress address) |
| | 0 | 64 | | { |
| | 0 | 65 | | throw new NotSupportedException(SR.net_collection_readonly); |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | public virtual void Clear() |
| | 0 | 69 | | { |
| | 0 | 70 | | throw new NotSupportedException(SR.net_collection_readonly); |
| | | 71 | | } |
| | | 72 | | } |
| | | 73 | | } |
| | | 74 | | |