Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- OleDbConnectionFactory.cs
- XmlProcessingInstruction.cs
- SmtpFailedRecipientException.cs
- PartManifestEntry.cs
- UnsafeMethods.cs
- Vertex.cs
- UriScheme.cs
- TransformedBitmap.cs
- ExceptionUtil.cs
- HtmlContainerControl.cs
- StateInitializationDesigner.cs
- FolderLevelBuildProviderCollection.cs
- MetadataCache.cs
- EntityConnection.cs
- DictionaryItemsCollection.cs
- FlowNode.cs
- StateWorkerRequest.cs
- Point3D.cs
- entitydatasourceentitysetnameconverter.cs
- HttpCookieCollection.cs
- Geometry.cs
- GrammarBuilderWildcard.cs
- InkPresenter.cs
- DesignerWebPartChrome.cs
- ToolStripComboBox.cs
- EUCJPEncoding.cs
- GridView.cs
- FontClient.cs
- DropShadowEffect.cs
- lengthconverter.cs
- Help.cs
- SapiRecoInterop.cs
- ServiceThrottle.cs
- TimeEnumHelper.cs
- System.Data_BID.cs
- StrokeCollectionConverter.cs
- TheQuery.cs
- XsltCompileContext.cs
- Focus.cs
- TcpClientChannel.cs
- SplineKeyFrames.cs
- FlowDocumentScrollViewer.cs
- CatalogZoneAutoFormat.cs
- UrlRoutingHandler.cs
- ControlValuePropertyAttribute.cs
- TreeNodeBinding.cs
- TextProviderWrapper.cs
- DebuggerAttributes.cs
- sqlstateclientmanager.cs
- ObjectDataProvider.cs
- _DigestClient.cs
- DisableDpiAwarenessAttribute.cs
- BaseTreeIterator.cs
- ReferentialConstraint.cs
- DataServiceKeyAttribute.cs
- OleDbRowUpdatedEvent.cs
- DependencyPropertyHelper.cs
- FormatConvertedBitmap.cs
- CookielessHelper.cs
- ContainerFilterService.cs
- ExpressionVisitorHelpers.cs
- XmlnsDefinitionAttribute.cs
- WebPartTransformerCollection.cs
- TextTreeFixupNode.cs
- OleDbRowUpdatedEvent.cs
- MaskDescriptors.cs
- CheckBoxRenderer.cs
- WebPartVerbsEventArgs.cs
- Figure.cs
- ViewKeyConstraint.cs
- WebDescriptionAttribute.cs
- XmlCompatibilityReader.cs
- XpsPackagingException.cs
- DetailsViewDeletedEventArgs.cs
- DiscoveryExceptionDictionary.cs
- NonClientArea.cs
- HandlerBase.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataReceivedEventArgs.cs
- Parser.cs
- WasAdminWrapper.cs
- ProfessionalColors.cs
- LoginCancelEventArgs.cs
- CheckPair.cs
- IndexedSelectQueryOperator.cs
- SwitchCase.cs
- QuaternionValueSerializer.cs
- NullReferenceException.cs
- BrowserTree.cs
- WebPart.cs
- InstancePersistenceCommand.cs
- ListViewUpdatedEventArgs.cs
- Viewport3DAutomationPeer.cs
- Matrix3DValueSerializer.cs
- DataGridViewTopLeftHeaderCell.cs
- ExplicitDiscriminatorMap.cs
- TypeForwardedToAttribute.cs
- SQLString.cs
- Rule.cs
- UnitySerializationHolder.cs