Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / IPAddressCollection.cs / 1 / 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 null; } 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)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StorageRoot.cs
- UserPreferenceChangingEventArgs.cs
- ImageField.cs
- CompoundFileStorageReference.cs
- ContactManager.cs
- ToolboxComponentsCreatingEventArgs.cs
- ResourceDisplayNameAttribute.cs
- ServiceChannelManager.cs
- BindingMAnagerBase.cs
- WebPartVerbsEventArgs.cs
- MetadataProperty.cs
- HashCoreRequest.cs
- TemplateContainer.cs
- EdmProperty.cs
- UpdateExpressionVisitor.cs
- StringTraceRecord.cs
- HtmlShimManager.cs
- BooleanAnimationBase.cs
- CodeDelegateCreateExpression.cs
- WindowsButton.cs
- LocationUpdates.cs
- SiteMapDataSource.cs
- securestring.cs
- OperatingSystem.cs
- UnsafeNativeMethodsPenimc.cs
- MatrixTransform.cs
- MailWebEventProvider.cs
- Part.cs
- DataGridAddNewRow.cs
- ExeConfigurationFileMap.cs
- OverlappedAsyncResult.cs
- mediaclock.cs
- MessageQueue.cs
- DataGridViewTextBoxCell.cs
- DataGridViewSortCompareEventArgs.cs
- RegexRunner.cs
- ReferentialConstraint.cs
- ListViewHitTestInfo.cs
- BackStopAuthenticationModule.cs
- BrowserTree.cs
- RtfControls.cs
- CustomTypeDescriptor.cs
- AutomationElementIdentifiers.cs
- VisualStyleTypesAndProperties.cs
- ObjectDataSourceDisposingEventArgs.cs
- RectAnimationClockResource.cs
- Pair.cs
- ColumnBinding.cs
- XmlChoiceIdentifierAttribute.cs
- ValueChangedEventManager.cs
- InfoCardSymmetricAlgorithm.cs
- AuthenticationServiceManager.cs
- DesignerTransactionCloseEvent.cs
- _ListenerResponseStream.cs
- Pen.cs
- PagePropertiesChangingEventArgs.cs
- GlobalAllocSafeHandle.cs
- Symbol.cs
- SystemUdpStatistics.cs
- Gdiplus.cs
- BufferedStream2.cs
- EvidenceBase.cs
- ImageDrawing.cs
- SelfSignedCertificate.cs
- AttributeCollection.cs
- Help.cs
- ToolStripDropDownClosingEventArgs.cs
- HostProtectionException.cs
- TextTrailingWordEllipsis.cs
- ScriptRef.cs
- DeflateEmulationStream.cs
- MeshGeometry3D.cs
- ListViewDesigner.cs
- AuthenticationException.cs
- ReservationCollection.cs
- Schema.cs
- ThicknessConverter.cs
- PropagatorResult.cs
- SliderAutomationPeer.cs
- Dump.cs
- RangeBaseAutomationPeer.cs
- DataGridViewAccessibleObject.cs
- MouseEvent.cs
- DataTableMappingCollection.cs
- Pen.cs
- TextBoxView.cs
- DataSourceSelectArguments.cs
- OutKeywords.cs
- DatePicker.cs
- XhtmlBasicPanelAdapter.cs
- DeviceContext.cs
- SQLInt16.cs
- MsmqMessageProperty.cs
- RadioButtonPopupAdapter.cs
- MemberHolder.cs
- ManagementClass.cs
- ReservationNotFoundException.cs
- CustomError.cs
- ApplicationSecurityInfo.cs
- thaishape.cs