Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / ipaddressinformationcollection.cs / 1305376 / ipaddressinformationcollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class IPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); internal IPAddressInformationCollection(){ } /// public virtual void CopyTo(IPAddressInformation[] 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(IPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(IPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(IPAddressInformation 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 IPAddressInformation this[int index] { get{ return (IPAddressInformation)addresses[index]; } } /// public virtual bool Remove(IPAddressInformation 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
- ObjectParameterCollection.cs
- SafeSystemMetrics.cs
- ListControl.cs
- Visual3D.cs
- InternalTypeHelper.cs
- FacetValueContainer.cs
- InputProcessorProfilesLoader.cs
- KeyPullup.cs
- ToolBarTray.cs
- SerializationInfo.cs
- LogPolicy.cs
- StandardToolWindows.cs
- WmlMobileTextWriter.cs
- ResourceKey.cs
- TimeSpanSecondsConverter.cs
- ImageDrawing.cs
- ByteArrayHelperWithString.cs
- InkPresenterAutomationPeer.cs
- DetailsViewPageEventArgs.cs
- SamlSubject.cs
- IncrementalCompileAnalyzer.cs
- QilTargetType.cs
- TripleDES.cs
- Size.cs
- EditingScopeUndoUnit.cs
- DocumentXPathNavigator.cs
- SafeRightsManagementPubHandle.cs
- DictionarySectionHandler.cs
- AlignmentYValidation.cs
- DocumentAutomationPeer.cs
- ManagedFilter.cs
- CombinedGeometry.cs
- TemplateInstanceAttribute.cs
- IIS7UserPrincipal.cs
- Publisher.cs
- EnumValidator.cs
- CodeSpit.cs
- embossbitmapeffect.cs
- UriSectionReader.cs
- DataGridAddNewRow.cs
- TableLayoutStyle.cs
- Base64Decoder.cs
- XmlCountingReader.cs
- CodeTypeReferenceExpression.cs
- SubpageParaClient.cs
- SqlCacheDependency.cs
- _emptywebproxy.cs
- DefaultParameterValueAttribute.cs
- MetadataItemEmitter.cs
- XamlToRtfParser.cs
- ColumnCollection.cs
- WCFBuildProvider.cs
- SamlAdvice.cs
- ThreadNeutralSemaphore.cs
- BitmapEffectInputData.cs
- QilScopedVisitor.cs
- Vector3DCollectionConverter.cs
- configsystem.cs
- BrowserTree.cs
- CreateRefExpr.cs
- TraceSection.cs
- XmlUrlResolver.cs
- ContentElementAutomationPeer.cs
- SHA512.cs
- MdImport.cs
- StringToken.cs
- ReceiveErrorHandling.cs
- PolyQuadraticBezierSegment.cs
- RMEnrollmentPage2.cs
- HandlerWithFactory.cs
- StateDesigner.cs
- XmlQueryCardinality.cs
- EntryIndex.cs
- LocalizableResourceBuilder.cs
- XmlSchemaCompilationSettings.cs
- FlowDocumentScrollViewer.cs
- Graph.cs
- DataKeyArray.cs
- SoapSchemaMember.cs
- MeshGeometry3D.cs
- ItemList.cs
- ProtocolState.cs
- FilteredDataSetHelper.cs
- RightsManagementPermission.cs
- TextStore.cs
- DefaultValueConverter.cs
- XmlNodeReader.cs
- SectionUpdates.cs
- IconHelper.cs
- DependencyPropertyConverter.cs
- SchemaDeclBase.cs
- Attribute.cs
- EventSinkHelperWriter.cs
- WebServiceHostFactory.cs
- GridViewCommandEventArgs.cs
- ButtonBaseAutomationPeer.cs
- LocationSectionRecord.cs
- SeekStoryboard.cs
- SystemWebExtensionsSectionGroup.cs
- DiscreteKeyFrames.cs