Code:
/ FX-1434 / FX-1434 / 1.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
- AuthStoreRoleProvider.cs
- MetadataItemSerializer.cs
- AssociationTypeEmitter.cs
- EpmSourcePathSegment.cs
- InvokeProviderWrapper.cs
- ObjectIDGenerator.cs
- DefaultProxySection.cs
- ManagementObjectSearcher.cs
- CngKeyBlobFormat.cs
- CodeGenerator.cs
- PiiTraceSource.cs
- Help.cs
- _IPv6Address.cs
- TreeViewImageIndexConverter.cs
- Axis.cs
- ListBindableAttribute.cs
- CalloutQueueItem.cs
- TemplateControlCodeDomTreeGenerator.cs
- SwitchAttribute.cs
- CodeDomComponentSerializationService.cs
- RecognizerStateChangedEventArgs.cs
- LicenseException.cs
- DataSourceCacheDurationConverter.cs
- SqlBooleanMismatchVisitor.cs
- MessageHeaders.cs
- EntityDataSourceChangedEventArgs.cs
- BitVector32.cs
- Stylesheet.cs
- SqlXmlStorage.cs
- UnsafeNativeMethods.cs
- ParserStreamGeometryContext.cs
- ObjectDataSourceSelectingEventArgs.cs
- ProfileModule.cs
- Decimal.cs
- MethodBuilderInstantiation.cs
- GridViewColumn.cs
- XmlEntityReference.cs
- WebPartCatalogAddVerb.cs
- ToolStripContentPanelDesigner.cs
- HttpCapabilitiesSectionHandler.cs
- EventItfInfo.cs
- DrawingContext.cs
- ElapsedEventArgs.cs
- RelationshipType.cs
- DataGridViewSortCompareEventArgs.cs
- CodeDefaultValueExpression.cs
- SafeFindHandle.cs
- IERequestCache.cs
- DataObjectPastingEventArgs.cs
- SingleAnimationBase.cs
- XmlDataSourceNodeDescriptor.cs
- Transform.cs
- TransformerTypeCollection.cs
- RbTree.cs
- FormViewPagerRow.cs
- SmtpDigestAuthenticationModule.cs
- SocketManager.cs
- WebPartConnectionsCloseVerb.cs
- XDRSchema.cs
- PassportAuthenticationEventArgs.cs
- ProtocolsConfigurationHandler.cs
- CommandEventArgs.cs
- SafeCertificateStore.cs
- MembershipAdapter.cs
- DisposableCollectionWrapper.cs
- storepermission.cs
- ToolStripGripRenderEventArgs.cs
- ListenerSingletonConnectionReader.cs
- CompilerParameters.cs
- VerificationException.cs
- MetricEntry.cs
- ServiceHostingEnvironment.cs
- SafeNativeMethods.cs
- TrackingStringDictionary.cs
- Visual3DCollection.cs
- SignedXml.cs
- ScaleTransform.cs
- ResourcePart.cs
- UIPermission.cs
- ProcessHostConfigUtils.cs
- EntityFrameworkVersions.cs
- SafeRegistryHandle.cs
- StreamWriter.cs
- MemberProjectionIndex.cs
- IndexOutOfRangeException.cs
- ImpersonateTokenRef.cs
- util.cs
- PageThemeParser.cs
- SocketManager.cs
- TemplatedMailWebEventProvider.cs
- DataGrid.cs
- Normalization.cs
- FlowDocumentReaderAutomationPeer.cs
- DelegatedStream.cs
- UIElementAutomationPeer.cs
- SqlFunctionAttribute.cs
- ComboBoxItem.cs
- NonBatchDirectoryCompiler.cs
- CodeConditionStatement.cs
- CustomWebEventKey.cs