Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / IPAddressCollection.cs / 1 / 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 null; } 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)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationServiceHelper.cs
- Fonts.cs
- LoginName.cs
- Camera.cs
- FillRuleValidation.cs
- EntitySqlException.cs
- CommonDialog.cs
- BoolLiteral.cs
- ControlAdapter.cs
- DateTimeOffset.cs
- TextFormatterContext.cs
- QuestionEventArgs.cs
- ItemsPanelTemplate.cs
- VerticalAlignConverter.cs
- DateTimeAutomationPeer.cs
- CheckoutException.cs
- NumericExpr.cs
- ManagementOptions.cs
- WebResponse.cs
- SmtpNtlmAuthenticationModule.cs
- UInt16.cs
- TreeViewDesigner.cs
- GeneralTransform3D.cs
- RuntimeConfigurationRecord.cs
- StringDictionaryCodeDomSerializer.cs
- HttpRuntimeSection.cs
- Container.cs
- BrowserTree.cs
- BuildManager.cs
- TextBox.cs
- XamlTemplateSerializer.cs
- BypassElement.cs
- InterleavedZipPartStream.cs
- ScrollItemPatternIdentifiers.cs
- ComponentSerializationService.cs
- EpmContentDeSerializerBase.cs
- VScrollProperties.cs
- SpotLight.cs
- ResumeStoryboard.cs
- TrackingMemoryStream.cs
- CompilerTypeWithParams.cs
- TreePrinter.cs
- DataControlCommands.cs
- ProfileInfo.cs
- RequestQueryProcessor.cs
- TimeManager.cs
- SqlParameterizer.cs
- HttpCachePolicy.cs
- KeyboardEventArgs.cs
- UnsafeNativeMethodsTablet.cs
- ConvertersCollection.cs
- XmlAttributeCollection.cs
- SignatureHelper.cs
- XPathNodeInfoAtom.cs
- QilValidationVisitor.cs
- InputEventArgs.cs
- _PooledStream.cs
- BaseComponentEditor.cs
- UserValidatedEventArgs.cs
- ToolBarButton.cs
- PathGeometry.cs
- XamlNamespaceHelper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SiteMapDataSourceView.cs
- ResolveNameEventArgs.cs
- ElementMarkupObject.cs
- CustomErrorsSection.cs
- Point3DCollectionConverter.cs
- ThreadNeutralSemaphore.cs
- DataColumnChangeEvent.cs
- DataReceivedEventArgs.cs
- GridErrorDlg.cs
- GeneratedView.cs
- StateChangeEvent.cs
- ProfileSettings.cs
- XmlSchemaComplexContentExtension.cs
- SiteMapPath.cs
- Popup.cs
- RSAPKCS1KeyExchangeFormatter.cs
- OrderPreservingPipeliningSpoolingTask.cs
- XmlComment.cs
- WindowsGraphicsCacheManager.cs
- SendKeys.cs
- StorageAssociationSetMapping.cs
- RegexWriter.cs
- StackBuilderSink.cs
- EmptyArray.cs
- LabelEditEvent.cs
- URLMembershipCondition.cs
- TrackingExtract.cs
- UrlAuthFailedErrorFormatter.cs
- CodeAssignStatement.cs
- TargetPerspective.cs
- InternalConfigConfigurationFactory.cs
- HwndSource.cs
- CharStorage.cs
- BufferedGraphics.cs
- CatalogZoneBase.cs
- SourceLineInfo.cs
- CapabilitiesUse.cs