Code:
/ FX-1434 / FX-1434 / 1.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
- CheckBox.cs
- InstanceDescriptor.cs
- SqlOuterApplyReducer.cs
- Config.cs
- CredentialCache.cs
- ComPlusTypeValidator.cs
- Int16Converter.cs
- MenuItemStyleCollection.cs
- NetworkInformationException.cs
- IndexerReference.cs
- HwndProxyElementProvider.cs
- Message.cs
- StopStoryboard.cs
- BulletedListEventArgs.cs
- LocalFileSettingsProvider.cs
- VideoDrawing.cs
- _ListenerRequestStream.cs
- XmlQueryStaticData.cs
- SourceItem.cs
- NumberFormatInfo.cs
- BinaryMethodMessage.cs
- VerificationAttribute.cs
- ResetableIterator.cs
- AuthenticationConfig.cs
- ManagedWndProcTracker.cs
- Helper.cs
- XmlSchemaResource.cs
- OdbcFactory.cs
- TraceProvider.cs
- ServiceDiscoveryBehavior.cs
- ImplicitInputBrush.cs
- HttpCacheVaryByContentEncodings.cs
- BaseDataList.cs
- DataSvcMapFile.cs
- WebPartRestoreVerb.cs
- HtmlTitle.cs
- ExpressionBindingCollection.cs
- SqlDataReader.cs
- SQLMoneyStorage.cs
- BinaryUtilClasses.cs
- DataMisalignedException.cs
- NavigationProgressEventArgs.cs
- XPathSelfQuery.cs
- BrowserTree.cs
- CompositeCollection.cs
- WorkflowRuntimeEndpoint.cs
- SoapIncludeAttribute.cs
- SqlBulkCopyColumnMapping.cs
- AuthorizationSection.cs
- SafeFileHandle.cs
- UITypeEditor.cs
- ServiceNameCollection.cs
- ToolStripSeparatorRenderEventArgs.cs
- SqlTriggerContext.cs
- QilValidationVisitor.cs
- WsiProfilesElementCollection.cs
- RequestCacheEntry.cs
- DataGridCellsPresenter.cs
- CommandField.cs
- MaskDescriptor.cs
- DynamicResourceExtensionConverter.cs
- CreateUserWizardStep.cs
- XpsFont.cs
- DetectRunnableInstancesTask.cs
- WasHttpHandlersInstallComponent.cs
- DataGridTextColumn.cs
- EntityDataSourceStatementEditorForm.cs
- Focus.cs
- XmlNamedNodeMap.cs
- TransformProviderWrapper.cs
- BorderGapMaskConverter.cs
- RepeaterItem.cs
- DefaultTextStore.cs
- SoapAttributeAttribute.cs
- ComboBoxRenderer.cs
- webproxy.cs
- ImageBrush.cs
- InputManager.cs
- SqlEnums.cs
- CompiledRegexRunner.cs
- SpeakInfo.cs
- XmlValueConverter.cs
- FlowLayoutPanel.cs
- DBConnection.cs
- SimpleExpression.cs
- CellConstant.cs
- StateFinalizationActivity.cs
- ResourcePool.cs
- GlyphCache.cs
- HtmlDocument.cs
- FontFamily.cs
- MonthCalendar.cs
- ContentWrapperAttribute.cs
- PathGeometry.cs
- XmlILOptimizerVisitor.cs
- _NTAuthentication.cs
- EnumBuilder.cs
- Expression.cs
- DesignerActionVerbList.cs
- Typeface.cs