Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / IPAddressCollection.cs / 1305376 / IPAddressCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class IPAddressCollection :ICollection{ Collection addresses = new Collection (); protected internal IPAddressCollection(){ } /// public virtual void CopyTo(IPAddress[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } public virtual void Add(IPAddress address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(IPAddress address) { addresses.Add(address); } /// public virtual bool Contains(IPAddress address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual IPAddress this[int index] { get{ return (IPAddress)addresses[index]; } } /// public virtual bool Remove(IPAddress address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } /// public virtual void Clear() { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartDisplayModeCancelEventArgs.cs
- IdentitySection.cs
- XmlSigningNodeWriter.cs
- QilFactory.cs
- CustomAssemblyResolver.cs
- NavigatingCancelEventArgs.cs
- __FastResourceComparer.cs
- FileUtil.cs
- SessionPageStateSection.cs
- DllNotFoundException.cs
- DataReceivedEventArgs.cs
- StatusInfoItem.cs
- SetStateEventArgs.cs
- MemberBinding.cs
- CollectionBase.cs
- RoutedEventValueSerializer.cs
- EmbeddedObject.cs
- Attribute.cs
- CodeVariableReferenceExpression.cs
- SchemaTableOptionalColumn.cs
- CheckBoxStandardAdapter.cs
- DefaultBindingPropertyAttribute.cs
- UInt32.cs
- iisPickupDirectory.cs
- FileDialog_Vista_Interop.cs
- CustomErrorsSectionWrapper.cs
- BinaryOperationBinder.cs
- LZCodec.cs
- Column.cs
- AdjustableArrowCap.cs
- BindingMAnagerBase.cs
- DecimalStorage.cs
- FontCacheUtil.cs
- ButtonStandardAdapter.cs
- ConfigurationValues.cs
- HandledEventArgs.cs
- Unit.cs
- ListBindingConverter.cs
- SessionStateSection.cs
- TimeSpanConverter.cs
- MiniCustomAttributeInfo.cs
- Main.cs
- AlphaSortedEnumConverter.cs
- Freezable.cs
- VersionPair.cs
- UniformGrid.cs
- ObjectHelper.cs
- DatatypeImplementation.cs
- PrimaryKeyTypeConverter.cs
- Visitors.cs
- ComEventsHelper.cs
- DynamicAttribute.cs
- QueryConverter.cs
- CreateUserErrorEventArgs.cs
- StyleXamlParser.cs
- PrtCap_Base.cs
- StartUpEventArgs.cs
- thaishape.cs
- SkewTransform.cs
- StaticSiteMapProvider.cs
- DES.cs
- TriggerAction.cs
- cookiecontainer.cs
- PropertyChangeTracker.cs
- ConfigurationManagerHelper.cs
- OleDbRowUpdatingEvent.cs
- SoapAttributeOverrides.cs
- TemplateParser.cs
- ExclusiveCanonicalizationTransform.cs
- XmlException.cs
- RecognizedPhrase.cs
- AuthStoreRoleProvider.cs
- Region.cs
- XmlDataSourceView.cs
- EntityDataSourceWrapper.cs
- RectangleF.cs
- CodePageUtils.cs
- CheckBoxRenderer.cs
- RootNamespaceAttribute.cs
- BinaryFormatterWriter.cs
- ArrayHelper.cs
- DbXmlEnabledProviderManifest.cs
- EventLogHandle.cs
- ActivityExecutionFilter.cs
- VerticalAlignConverter.cs
- QueryOptionExpression.cs
- WsdlParser.cs
- DataRecordObjectView.cs
- PersonalizablePropertyEntry.cs
- ConfigurationErrorsException.cs
- LinqDataSourceDisposeEventArgs.cs
- ImageListStreamer.cs
- ReadWriteObjectLock.cs
- StrongName.cs
- SystemResourceHost.cs
- BadImageFormatException.cs
- RadialGradientBrush.cs
- DbConnectionPool.cs
- ThicknessKeyFrameCollection.cs
- SignatureHelper.cs