Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / GatewayIPAddressInformationCollection.cs / 1 / GatewayIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class GatewayIPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); protected internal GatewayIPAddressInformationCollection(){ } /// public virtual void CopyTo(GatewayIPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } public virtual GatewayIPAddressInformation this[int index] { get{ return (GatewayIPAddressInformation)addresses[index]; } } /// public virtual void Add(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(GatewayIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(GatewayIPAddressInformation address) { return addresses.Contains(address); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } /// public virtual bool Remove(GatewayIPAddressInformation 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
- GACIdentityPermission.cs
- ParameterCollection.cs
- SqlComparer.cs
- ProcessStartInfo.cs
- XmlSerializerFactory.cs
- BoundPropertyEntry.cs
- LabelEditEvent.cs
- BitmapSourceSafeMILHandle.cs
- PropertyRef.cs
- FunctionImportElement.cs
- XamlReaderHelper.cs
- XMLSyntaxException.cs
- Rotation3DAnimationBase.cs
- SystemFonts.cs
- PeerNameRegistration.cs
- ToolStripDropTargetManager.cs
- PerformanceCounterPermissionEntryCollection.cs
- ComponentResourceManager.cs
- PropertyCollection.cs
- FixedSOMContainer.cs
- CmsInterop.cs
- SystemIPAddressInformation.cs
- SecurityUtils.cs
- SiteMapSection.cs
- InteropBitmapSource.cs
- XmlSchemaCollection.cs
- AppSettingsExpressionBuilder.cs
- AttributeCollection.cs
- StateItem.cs
- SslStreamSecurityBindingElement.cs
- ControlPaint.cs
- AspNetSynchronizationContext.cs
- TextViewBase.cs
- WorkflowInstanceExtensionCollection.cs
- CultureTable.cs
- AuthenticationService.cs
- CatalogPart.cs
- PasswordPropertyTextAttribute.cs
- SQLCharsStorage.cs
- ToolboxSnapDragDropEventArgs.cs
- VBIdentifierNameEditor.cs
- DetailsViewRow.cs
- ReadOnlyDataSourceView.cs
- GridErrorDlg.cs
- _DomainName.cs
- SimpleFieldTemplateFactory.cs
- ItemMap.cs
- AutomationPatternInfo.cs
- CommonXSendMessage.cs
- IsolatedStorageFilePermission.cs
- DbProviderServices.cs
- DashStyles.cs
- ReferentialConstraint.cs
- DataMemberFieldConverter.cs
- SafeLibraryHandle.cs
- NamespaceInfo.cs
- ConnectionConsumerAttribute.cs
- odbcmetadatacollectionnames.cs
- WindowsListViewGroupHelper.cs
- Padding.cs
- ScriptingJsonSerializationSection.cs
- Compilation.cs
- BitmapVisualManager.cs
- ReaderWriterLockSlim.cs
- EntityCollectionChangedParams.cs
- WorkflowService.cs
- PropertyGeneratedEventArgs.cs
- RegexCaptureCollection.cs
- SiteMapDataSource.cs
- RegexEditorDialog.cs
- autovalidator.cs
- TextInfo.cs
- Condition.cs
- MembershipUser.cs
- MenuItem.cs
- FieldDescriptor.cs
- BinaryParser.cs
- ProcessHost.cs
- AnimationTimeline.cs
- CodeMemberMethod.cs
- KeyGestureConverter.cs
- ExpressionVisitorHelpers.cs
- propertytag.cs
- DefaultPrintController.cs
- PageHandlerFactory.cs
- MissingManifestResourceException.cs
- CustomSignedXml.cs
- GenericPrincipal.cs
- XmlSchemaNotation.cs
- AlignmentXValidation.cs
- PaintValueEventArgs.cs
- X509SecurityTokenProvider.cs
- PartBasedPackageProperties.cs
- EditorPart.cs
- InputScopeNameConverter.cs
- DataStreamFromComStream.cs
- JapaneseCalendar.cs
- DesignBindingValueUIHandler.cs
- SubstitutionList.cs
- FindCriteria11.cs