Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Missing.cs
- PerfCounters.cs
- Button.cs
- SQlBooleanStorage.cs
- SchemaAttDef.cs
- EditableRegion.cs
- ButtonColumn.cs
- ClientConfigurationHost.cs
- XDeferredAxisSource.cs
- Propagator.cs
- ConstraintStruct.cs
- ServiceElement.cs
- EventsTab.cs
- Roles.cs
- ISAPIWorkerRequest.cs
- ToolStripContainer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ListMarkerLine.cs
- dbenumerator.cs
- PerformanceCounterLib.cs
- ZipIOFileItemStream.cs
- ResourceDescriptionAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- diagnosticsswitches.cs
- TextDpi.cs
- ObjectDisposedException.cs
- DataConnectionHelper.cs
- DeriveBytes.cs
- columnmapkeybuilder.cs
- InvalidWMPVersionException.cs
- ReadOnlyNameValueCollection.cs
- ImplicitInputBrush.cs
- ListItemConverter.cs
- CodeValidator.cs
- DesignerDataTableBase.cs
- AssemblyCollection.cs
- AssertUtility.cs
- SoapEnumAttribute.cs
- TouchFrameEventArgs.cs
- AssociatedControlConverter.cs
- WebPartMovingEventArgs.cs
- Model3D.cs
- RoutedEventArgs.cs
- EnumerableRowCollection.cs
- IndexedEnumerable.cs
- ResourceDictionaryCollection.cs
- TickBar.cs
- LocatorPart.cs
- PerformanceCounterCategory.cs
- ProjectionCamera.cs
- TaskFormBase.cs
- ObservableDictionary.cs
- DBCSCodePageEncoding.cs
- PanelDesigner.cs
- ReverseInheritProperty.cs
- RadioButtonFlatAdapter.cs
- RegexParser.cs
- AnimationLayer.cs
- AlternateViewCollection.cs
- PassportAuthentication.cs
- ReservationNotFoundException.cs
- __ConsoleStream.cs
- ToolStripItemTextRenderEventArgs.cs
- GetCryptoTransformRequest.cs
- PriorityQueue.cs
- DesignerDataColumn.cs
- XmlToDatasetMap.cs
- XmlSchemaObject.cs
- TextAdaptor.cs
- UserNameSecurityTokenProvider.cs
- ThreadPool.cs
- GraphicsPathIterator.cs
- ReaderWriterLockWrapper.cs
- URLAttribute.cs
- VBCodeProvider.cs
- XsltQilFactory.cs
- UnauthorizedAccessException.cs
- TypeExtensions.cs
- SQlBooleanStorage.cs
- TypeUsageBuilder.cs
- ThemeableAttribute.cs
- FixedFlowMap.cs
- RegionData.cs
- ExtensionQuery.cs
- SystemIcons.cs
- SafeFindHandle.cs
- XmlSchemaComplexContentExtension.cs
- ScriptRegistrationManager.cs
- RenderOptions.cs
- NeutralResourcesLanguageAttribute.cs
- SiteMapNodeItem.cs
- SRGSCompiler.cs
- Random.cs
- DataGridViewTextBoxCell.cs
- SocketException.cs
- ToolStripContainer.cs
- ListComponentEditor.cs
- LineGeometry.cs
- DataControlReference.cs
- MemberDescriptor.cs