Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / IPAddressCollection.cs / 1305376 / IPAddressCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class IPAddressCollection :ICollection{ Collection addresses = new Collection (); protected internal IPAddressCollection(){ } /// public virtual void CopyTo(IPAddress[] 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(IPAddress address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(IPAddress address) { addresses.Add(address); } /// public virtual bool Contains(IPAddress address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual IPAddress this[int index] { get{ return (IPAddress)addresses[index]; } } /// public virtual bool Remove(IPAddress 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
- HtmlDocument.cs
- DataGridHeaderBorder.cs
- HtmlSelectionListAdapter.cs
- UInt64Storage.cs
- VerticalAlignConverter.cs
- DrawingGroup.cs
- X509Chain.cs
- CustomLineCap.cs
- TreeView.cs
- RegularExpressionValidator.cs
- ActiveXContainer.cs
- ThreadAttributes.cs
- ThousandthOfEmRealDoubles.cs
- OrderablePartitioner.cs
- XmlBindingWorker.cs
- InstanceNormalEvent.cs
- RestClientProxyHandler.cs
- FixUp.cs
- ProcessStartInfo.cs
- BitmapEffectDrawing.cs
- PlainXmlSerializer.cs
- OrderedDictionaryStateHelper.cs
- DataSourceControl.cs
- ScopedMessagePartSpecification.cs
- ExpressionBinding.cs
- SimpleWebHandlerParser.cs
- DragEventArgs.cs
- TextBox.cs
- ItemCollection.cs
- ConfigurationStrings.cs
- ChildrenQuery.cs
- GridViewHeaderRowPresenter.cs
- MailAddress.cs
- AssemblyCache.cs
- PropertyMetadata.cs
- BufferedGraphicsContext.cs
- TypeElement.cs
- BitmapMetadata.cs
- DesignerInterfaces.cs
- Vector3DAnimation.cs
- StringFormat.cs
- BrowserCapabilitiesCompiler.cs
- HttpFileCollection.cs
- SelfIssuedAuthAsymmetricKey.cs
- SqlInfoMessageEvent.cs
- WebPartManagerInternals.cs
- ExtendedProtectionPolicy.cs
- KeyGestureValueSerializer.cs
- FigureParagraph.cs
- serverconfig.cs
- Application.cs
- ReliableSession.cs
- AQNBuilder.cs
- ClientSettingsProvider.cs
- ToolStripDropDown.cs
- CallSiteOps.cs
- NativeMethods.cs
- VariableBinder.cs
- PointValueSerializer.cs
- NumericUpDownAccelerationCollection.cs
- EditorZone.cs
- TdsParserHelperClasses.cs
- MostlySingletonList.cs
- ResourceSet.cs
- TransactionChannelFaultConverter.cs
- ShaderEffect.cs
- BasicExpandProvider.cs
- CodeAccessPermission.cs
- KerberosRequestorSecurityToken.cs
- BaseResourcesBuildProvider.cs
- CompressStream.cs
- ColorConvertedBitmap.cs
- DigestComparer.cs
- Nullable.cs
- PropertyCollection.cs
- DBNull.cs
- HtmlHistory.cs
- querybuilder.cs
- OleAutBinder.cs
- SimpleHandlerFactory.cs
- DataBinder.cs
- selecteditemcollection.cs
- ListItemParagraph.cs
- NamedPipeProcessProtocolHandler.cs
- XmlSchemaSimpleTypeList.cs
- ProtectedProviderSettings.cs
- DataGridViewButtonColumn.cs
- TemplateBaseAction.cs
- XmlHierarchicalEnumerable.cs
- QuotedPrintableStream.cs
- ResourceDisplayNameAttribute.cs
- DataGridRow.cs
- SmiMetaData.cs
- PageContentAsyncResult.cs
- DataBinder.cs
- Errors.cs
- ConfigXmlCDataSection.cs
- ToolStripItemTextRenderEventArgs.cs
- HtmlInputControl.cs
- EdmType.cs