Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / ipaddressinformationcollection.cs / 1 / 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 null; } 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _MultipleConnectAsync.cs
- CustomExpression.cs
- StrokeIntersection.cs
- LocalizationComments.cs
- XPathQilFactory.cs
- ActivityExecutionFilter.cs
- Activity.cs
- CanonicalXml.cs
- SafeLibraryHandle.cs
- AnimationTimeline.cs
- ConfigDefinitionUpdates.cs
- _SafeNetHandles.cs
- WebPartDescriptionCollection.cs
- IndexOutOfRangeException.cs
- DiscoveryClientProtocol.cs
- Transactions.cs
- ListenerConnectionModeReader.cs
- ToolStripContentPanelRenderEventArgs.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ViewService.cs
- EdmToObjectNamespaceMap.cs
- Vector3DCollection.cs
- DynamicRenderer.cs
- PageThemeParser.cs
- EdmProperty.cs
- Image.cs
- DataGridHelper.cs
- DefaultEventAttribute.cs
- HttpListenerContext.cs
- GeneralTransform.cs
- CompressEmulationStream.cs
- ProfileProvider.cs
- ModelVisual3D.cs
- Exception.cs
- PowerModeChangedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- HuffModule.cs
- ProfileManager.cs
- CacheDependency.cs
- DnsPermission.cs
- TriggerCollection.cs
- ProviderManager.cs
- LineUtil.cs
- StandardCommands.cs
- Decoder.cs
- InternalBase.cs
- ProfileSettingsCollection.cs
- QueryableDataSourceView.cs
- BuildTopDownAttribute.cs
- ObjRef.cs
- SecurityUniqueId.cs
- ResXResourceSet.cs
- SystemDropShadowChrome.cs
- UidManager.cs
- DocumentApplicationJournalEntry.cs
- CollectionBase.cs
- RoleManagerSection.cs
- HideDisabledControlAdapter.cs
- HitTestParameters.cs
- ChildDocumentBlock.cs
- PeerCustomResolverBindingElement.cs
- TemplateBuilder.cs
- BitmapEffectCollection.cs
- CellConstantDomain.cs
- TypeSystem.cs
- QuotedPrintableStream.cs
- TextEndOfParagraph.cs
- FixedSOMPage.cs
- _TLSstream.cs
- AutoGeneratedFieldProperties.cs
- PenLineCapValidation.cs
- LocationChangedEventArgs.cs
- WindowsAuthenticationModule.cs
- EncodingDataItem.cs
- AdRotatorDesigner.cs
- SoapElementAttribute.cs
- LayeredChannelFactory.cs
- UserPersonalizationStateInfo.cs
- VersionedStream.cs
- SecurityTokenValidationException.cs
- SchemaSetCompiler.cs
- TdsValueSetter.cs
- XmlSchemaSubstitutionGroup.cs
- TransferMode.cs
- NamespaceQuery.cs
- SafeRightsManagementQueryHandle.cs
- Light.cs
- NamespaceMapping.cs
- RecognizerBase.cs
- ExclusiveNamedPipeTransportManager.cs
- LOSFormatter.cs
- ObjectStateFormatter.cs
- BitmapDownload.cs
- AuthorizationRule.cs
- CodeTryCatchFinallyStatement.cs
- SerializationAttributes.cs
- shaperfactory.cs
- Package.cs
- GroupStyle.cs
- AbstractDataSvcMapFileLoader.cs