Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / ipaddressinformationcollection.cs / 1305376 / 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 this.GetEnumerator(); } 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
- FileSystemInfo.cs
- FixedPosition.cs
- MissingManifestResourceException.cs
- SocketElement.cs
- DataKey.cs
- _SafeNetHandles.cs
- _AcceptOverlappedAsyncResult.cs
- CollectionContainer.cs
- RawStylusInput.cs
- bidPrivateBase.cs
- SwitchElementsCollection.cs
- TextRunTypographyProperties.cs
- HtmlMeta.cs
- ScriptModule.cs
- DataGridViewCellStyle.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- String.cs
- SoapHeader.cs
- OuterGlowBitmapEffect.cs
- PropertyConverter.cs
- ProjectedSlot.cs
- KeyedHashAlgorithm.cs
- FrameworkContentElement.cs
- FloaterParaClient.cs
- Pair.cs
- XsdValidatingReader.cs
- AppDomainManager.cs
- CodePropertyReferenceExpression.cs
- BamlVersionHeader.cs
- QilParameter.cs
- SrgsOneOf.cs
- InvalidMessageContractException.cs
- DataGridCellsPresenter.cs
- LinkedList.cs
- WebReferenceCollection.cs
- SqlColumnizer.cs
- JavaScriptString.cs
- XmlSchemaAttributeGroupRef.cs
- ContextMenu.cs
- EventMetadata.cs
- EntityDataSourceChangingEventArgs.cs
- ExpressionNode.cs
- NullReferenceException.cs
- EntityDataSourceViewSchema.cs
- Converter.cs
- StringPropertyBuilder.cs
- ImageBrush.cs
- DescendantOverDescendantQuery.cs
- JumpList.cs
- Task.cs
- DataGridViewCell.cs
- _LocalDataStoreMgr.cs
- CompositeDispatchFormatter.cs
- ForwardPositionQuery.cs
- IntersectQueryOperator.cs
- SymLanguageType.cs
- EntityDataSourceView.cs
- ResourceAttributes.cs
- DataGridRelationshipRow.cs
- WebPartsSection.cs
- ImageMap.cs
- MenuBase.cs
- ProfileParameter.cs
- DataSourceControl.cs
- HyperLink.cs
- BitmapScalingModeValidation.cs
- BindingMemberInfo.cs
- Journal.cs
- NavigatorInvalidBodyAccessException.cs
- EdmToObjectNamespaceMap.cs
- SafeRightsManagementQueryHandle.cs
- MissingMemberException.cs
- HttpHandlerAction.cs
- MemberCollection.cs
- HtmlFormAdapter.cs
- NameTable.cs
- Attributes.cs
- CssStyleCollection.cs
- storagemappingitemcollection.viewdictionary.cs
- CultureSpecificStringDictionary.cs
- ProfileModule.cs
- CharacterShapingProperties.cs
- HttpRequestTraceRecord.cs
- DropSource.cs
- ColumnWidthChangedEvent.cs
- XPathConvert.cs
- ReplyChannelBinder.cs
- WebPartMovingEventArgs.cs
- CollectionType.cs
- ConsumerConnectionPointCollection.cs
- CriticalExceptions.cs
- SecurityCriticalDataForSet.cs
- BinaryEditor.cs
- DragCompletedEventArgs.cs
- SchemaImporterExtension.cs
- UnSafeCharBuffer.cs
- DesignerCommandSet.cs
- ChangePassword.cs
- CheckedPointers.cs
- Selection.cs