Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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)); } } } // 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
- basemetadatamappingvisitor.cs
- SystemInfo.cs
- StateMachineWorkflowDesigner.cs
- thaishape.cs
- RunWorkerCompletedEventArgs.cs
- InfoCardAsymmetricCrypto.cs
- WinFormsSecurity.cs
- HttpConfigurationSystem.cs
- NamedPipeProcessProtocolHandler.cs
- BamlLocalizabilityResolver.cs
- XmlNamedNodeMap.cs
- CodeBlockBuilder.cs
- Version.cs
- DataControlImageButton.cs
- GeneralTransform2DTo3DTo2D.cs
- HtmlDocument.cs
- WebPartEditVerb.cs
- StorageScalarPropertyMapping.cs
- InputReport.cs
- PeerDuplexChannelListener.cs
- DataViewManagerListItemTypeDescriptor.cs
- ProviderUtil.cs
- ArgumentOutOfRangeException.cs
- BackStopAuthenticationModule.cs
- ManagementInstaller.cs
- LayoutEditorPart.cs
- WsatServiceAddress.cs
- SqlNotificationEventArgs.cs
- ReferencedAssemblyResolver.cs
- Update.cs
- DataGridViewCellValidatingEventArgs.cs
- HijriCalendar.cs
- TokenizerHelper.cs
- Table.cs
- Trace.cs
- BitmapEffectRenderDataResource.cs
- BinaryParser.cs
- OdbcConnectionPoolProviderInfo.cs
- Win32SafeHandles.cs
- DetailsViewPageEventArgs.cs
- Events.cs
- GraphicsPathIterator.cs
- CancellationHandler.cs
- CacheChildrenQuery.cs
- XmlQueryContext.cs
- ProjectionPruner.cs
- XamlToRtfParser.cs
- ContentIterators.cs
- PointLightBase.cs
- ExternalDataExchangeService.cs
- AuthorizationSection.cs
- PathGeometry.cs
- X509Extension.cs
- SQLDouble.cs
- PKCS1MaskGenerationMethod.cs
- SynchronizingStream.cs
- ZipArchive.cs
- MissingMemberException.cs
- ObjectDataSourceMethodEventArgs.cs
- ListParagraph.cs
- ListManagerBindingsCollection.cs
- SqlOuterApplyReducer.cs
- MappingMetadataHelper.cs
- PersonalizationDictionary.cs
- FixedSOMTable.cs
- ProxyWebPartManager.cs
- MouseActionConverter.cs
- sortedlist.cs
- ManualResetEventSlim.cs
- Stack.cs
- WebPartsPersonalization.cs
- ClonableStack.cs
- ping.cs
- HtmlImage.cs
- StatusBarAutomationPeer.cs
- XPathCompileException.cs
- Select.cs
- TextEditorTyping.cs
- ImmutableObjectAttribute.cs
- _LocalDataStoreMgr.cs
- _NegoState.cs
- NetworkInformationException.cs
- CredentialCache.cs
- WebMessageFormatHelper.cs
- SpoolingTaskBase.cs
- SingleSelectRootGridEntry.cs
- EdmItemError.cs
- StoreItemCollection.Loader.cs
- TriggerActionCollection.cs
- HttpServerChannel.cs
- EntityDataSource.cs
- PartialTrustVisibleAssembliesSection.cs
- SystemDropShadowChrome.cs
- AtlasWeb.Designer.cs
- AccessorTable.cs
- updateconfighost.cs
- InternalConfigHost.cs
- Operators.cs
- PartialToken.cs
- BaseResourcesBuildProvider.cs