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
- HostedTransportConfigurationManager.cs
- XmlTextAttribute.cs
- CopyOnWriteList.cs
- BasePropertyDescriptor.cs
- ToolStripItemDataObject.cs
- MenuEventArgs.cs
- InitializingNewItemEventArgs.cs
- ObservableDictionary.cs
- AuthenticationServiceManager.cs
- InputScopeManager.cs
- SmtpFailedRecipientsException.cs
- PropertyValueChangedEvent.cs
- HtmlToClrEventProxy.cs
- FormViewDeletedEventArgs.cs
- OrderablePartitioner.cs
- SystemTcpConnection.cs
- Query.cs
- ResourcesChangeInfo.cs
- TagElement.cs
- InvalidAsynchronousStateException.cs
- SystemDropShadowChrome.cs
- SessionViewState.cs
- XmlSchemaDatatype.cs
- DashStyle.cs
- ApplicationServicesHostFactory.cs
- XmlDataCollection.cs
- ASCIIEncoding.cs
- CodeAttachEventStatement.cs
- RowToParametersTransformer.cs
- Trigger.cs
- StringDictionary.cs
- ArrayExtension.cs
- FtpRequestCacheValidator.cs
- TabRenderer.cs
- PagesChangedEventArgs.cs
- ConfigurationErrorsException.cs
- ObjectAnimationBase.cs
- QueryNode.cs
- PeerTransportListenAddressValidatorAttribute.cs
- HttpInputStream.cs
- StoreContentChangedEventArgs.cs
- HitTestResult.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- SecurityDocument.cs
- SurrogateEncoder.cs
- RightsDocument.cs
- MetadataItemEmitter.cs
- Stack.cs
- ThemeInfoAttribute.cs
- StoreAnnotationsMap.cs
- CallSite.cs
- Brush.cs
- TimeZone.cs
- LinkDescriptor.cs
- DynamicPropertyReader.cs
- RecognizerBase.cs
- SqlErrorCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- SocketAddress.cs
- TcpStreams.cs
- RequestedSignatureDialog.cs
- HuffmanTree.cs
- TabControlCancelEvent.cs
- Debug.cs
- MatrixTransform3D.cs
- ListBoxItemWrapperAutomationPeer.cs
- CreateSequence.cs
- BufferedGraphicsContext.cs
- CookieParameter.cs
- ButtonBase.cs
- Exceptions.cs
- odbcmetadatacollectionnames.cs
- CharacterString.cs
- CallTemplateAction.cs
- SwitchAttribute.cs
- ModelVisual3D.cs
- UserControlAutomationPeer.cs
- LocationEnvironment.cs
- WebPartPersonalization.cs
- AbstractSvcMapFileLoader.cs
- XmlSchemas.cs
- AlphabeticalEnumConverter.cs
- EventSetterHandlerConverter.cs
- StateRuntime.cs
- FrameSecurityDescriptor.cs
- ping.cs
- BamlWriter.cs
- ClientFormsAuthenticationMembershipProvider.cs
- VisualBrush.cs
- IdnElement.cs
- NavigationWindowAutomationPeer.cs
- ExecutionContext.cs
- MdiWindowListStrip.cs
- DesignerSerializationVisibilityAttribute.cs
- PingOptions.cs
- UnitySerializationHolder.cs
- HostedAspNetEnvironment.cs
- WriteTimeStream.cs
- XmlNamespaceDeclarationsAttribute.cs
- UInt64.cs