Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / UnicastIPAddressInformationCollection.cs / 1 / UnicastIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class UnicastIPAddressInformationCollection :ICollection{ Collection addresses = new Collection () ; protected internal UnicastIPAddressInformationCollection(){ } /// public virtual void CopyTo(UnicastIPAddressInformation[] 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(UnicastIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(UnicastIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(UnicastIPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } // Consider removing. public virtual UnicastIPAddressInformation this[int index] { get{ return (UnicastIPAddressInformation)addresses[index]; } } /// public virtual bool Remove(UnicastIPAddressInformation 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
- FirstMatchCodeGroup.cs
- BuildProviderCollection.cs
- ContainerActivationHelper.cs
- InputMethod.cs
- WizardPanelChangingEventArgs.cs
- HttpHandlerActionCollection.cs
- XmlAttributeAttribute.cs
- WebConfigurationHostFileChange.cs
- DelegatingConfigHost.cs
- HashHelper.cs
- Perspective.cs
- TextEndOfParagraph.cs
- SqlVisitor.cs
- Splitter.cs
- ListBoxAutomationPeer.cs
- AmbiguousMatchException.cs
- XmlDocumentFragment.cs
- WS2007FederationHttpBindingCollectionElement.cs
- HitTestResult.cs
- XpsSerializerWriter.cs
- LiteralDesigner.cs
- DataGridColumnReorderingEventArgs.cs
- WebZone.cs
- StringValueSerializer.cs
- DataSourceXmlSerializer.cs
- StatusBar.cs
- FormsAuthenticationCredentials.cs
- ProfileService.cs
- SettingsPropertyNotFoundException.cs
- TableLayoutRowStyleCollection.cs
- ProfileManager.cs
- Geometry3D.cs
- ContextProperty.cs
- PolicyLevel.cs
- TextRenderer.cs
- ResourceProviderFactory.cs
- SymbolType.cs
- EncryptedPackage.cs
- GeometryConverter.cs
- MemoryPressure.cs
- Monitor.cs
- RTLAwareMessageBox.cs
- Codec.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- MergeFilterQuery.cs
- PageContent.cs
- InputProviderSite.cs
- XmlSerializerFactory.cs
- OnOperation.cs
- WebPartDisplayModeCollection.cs
- DataGridDesigner.cs
- QuadraticBezierSegment.cs
- SqlCacheDependencySection.cs
- GrammarBuilderRuleRef.cs
- InkCanvasFeedbackAdorner.cs
- DbProviderManifest.cs
- SoapMessage.cs
- ServiceThrottlingBehavior.cs
- login.cs
- _NetRes.cs
- CommandBinding.cs
- DataGridCommandEventArgs.cs
- Bold.cs
- UnauthorizedAccessException.cs
- GridViewAutomationPeer.cs
- UserMapPath.cs
- DesignerEditorPartChrome.cs
- ExtensionSurface.cs
- EntityCommand.cs
- ListDictionaryInternal.cs
- RectKeyFrameCollection.cs
- OracleConnectionStringBuilder.cs
- StringWriter.cs
- WebPartAuthorizationEventArgs.cs
- Trigger.cs
- BaseTemplateBuildProvider.cs
- IODescriptionAttribute.cs
- DataViewListener.cs
- HighlightComponent.cs
- NodeFunctions.cs
- ChooseAction.cs
- SQLBoolean.cs
- ActivityExecutorDelegateInfo.cs
- Speller.cs
- MDIControlStrip.cs
- ValidatorCollection.cs
- CryptoKeySecurity.cs
- MemoryMappedFileSecurity.cs
- InkCanvas.cs
- SerializationAttributes.cs
- CommandLineParser.cs
- ContainerTracking.cs
- IdentitySection.cs
- LightweightCodeGenerator.cs
- BamlTreeMap.cs
- DesignerTransaction.cs
- CssClassPropertyAttribute.cs
- ComNativeDescriptor.cs
- EditorPartCollection.cs
- FontClient.cs