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
- FileReader.cs
- XmlSchemaSimpleContentRestriction.cs
- CodePageEncoding.cs
- SymbolPair.cs
- Content.cs
- GridSplitterAutomationPeer.cs
- HttpWebResponse.cs
- Page.cs
- SQLBinary.cs
- SmiContext.cs
- DebuggerAttributes.cs
- ReflectionPermission.cs
- GetCardDetailsRequest.cs
- VectorAnimationBase.cs
- RouteParameter.cs
- TextTreeRootTextBlock.cs
- Line.cs
- FontFamily.cs
- HTTPNotFoundHandler.cs
- File.cs
- MachinePropertyVariants.cs
- Parameter.cs
- MessageQueuePermissionAttribute.cs
- SystemResourceKey.cs
- Crypto.cs
- XmlQueryContext.cs
- ScriptControlManager.cs
- TemplateControl.cs
- sqlstateclientmanager.cs
- AsyncOperationManager.cs
- StatusBarPanel.cs
- Control.cs
- Selector.cs
- DetailsViewInsertedEventArgs.cs
- SrgsNameValueTag.cs
- DataContractSerializerElement.cs
- PaperSource.cs
- TreeNodeBindingCollection.cs
- DescendantQuery.cs
- DES.cs
- LockCookie.cs
- ChangeInterceptorAttribute.cs
- CompositeControl.cs
- UniqueConstraint.cs
- SequenceDesigner.cs
- ForeignKeyConstraint.cs
- ContentPlaceHolder.cs
- GridViewColumn.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CalculatedColumn.cs
- FtpCachePolicyElement.cs
- LogicalTreeHelper.cs
- WebServiceHandler.cs
- ParameterElementCollection.cs
- WSDualHttpBindingElement.cs
- ParenthesizePropertyNameAttribute.cs
- TextRangeAdaptor.cs
- ObjectConverter.cs
- AsymmetricSignatureFormatter.cs
- SafeHandles.cs
- FileDialogCustomPlace.cs
- EditorAttribute.cs
- ListBoxChrome.cs
- TransportSecurityBindingElement.cs
- WinFormsSecurity.cs
- XmlAnyElementAttributes.cs
- VisualBasic.cs
- ScriptControlDescriptor.cs
- ToolStripPanelSelectionBehavior.cs
- VariableAction.cs
- TextCharacters.cs
- PointLight.cs
- CatalogPart.cs
- EFDataModelProvider.cs
- PageAsyncTaskManager.cs
- CssTextWriter.cs
- StorageRoot.cs
- DeclarationUpdate.cs
- RemoteWebConfigurationHostStream.cs
- RelatedCurrencyManager.cs
- QilStrConcatenator.cs
- JoinGraph.cs
- _BaseOverlappedAsyncResult.cs
- ProviderConnectionPointCollection.cs
- CryptoProvider.cs
- GeneratedView.cs
- ConfigurationLoaderException.cs
- EventSourceCreationData.cs
- SplitterCancelEvent.cs
- XsltQilFactory.cs
- PreProcessInputEventArgs.cs
- InputMethod.cs
- StringAttributeCollection.cs
- MenuCommands.cs
- ListBindingHelper.cs
- XmlRootAttribute.cs
- PointAnimationBase.cs
- DatatypeImplementation.cs
- XmlElementAttributes.cs
- SqlCacheDependencyDatabaseCollection.cs