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
- NoneExcludedImageIndexConverter.cs
- XmlSchemaNotation.cs
- ExpressionPrinter.cs
- XslVisitor.cs
- XmlNavigatorStack.cs
- InputQueue.cs
- ColumnTypeConverter.cs
- RepeatButtonAutomationPeer.cs
- ToolStripDropTargetManager.cs
- PowerStatus.cs
- Math.cs
- ToolStripLabel.cs
- CodeAttributeDeclarationCollection.cs
- SchemaDeclBase.cs
- DescendentsWalker.cs
- GeneralTransform2DTo3DTo2D.cs
- DataTableMappingCollection.cs
- DataChangedEventManager.cs
- HttpHandlersSection.cs
- UrlMapping.cs
- Assembly.cs
- LineVisual.cs
- FilteredXmlReader.cs
- XmlStreamStore.cs
- HtmlTableCellCollection.cs
- Viewport3DVisual.cs
- MDIControlStrip.cs
- FocusManager.cs
- EditorAttributeInfo.cs
- updateconfighost.cs
- CodeDirectoryCompiler.cs
- ExternalFile.cs
- CodeConditionStatement.cs
- FilteredAttributeCollection.cs
- GridViewCommandEventArgs.cs
- ScriptManagerProxy.cs
- SortedDictionary.cs
- Message.cs
- ToolBar.cs
- SchemaImporterExtensionElement.cs
- URLIdentityPermission.cs
- Zone.cs
- EditorZoneBase.cs
- SQLRoleProvider.cs
- HttpFileCollectionWrapper.cs
- FontSource.cs
- ProtocolsSection.cs
- GenericIdentity.cs
- ToolStripProgressBar.cs
- ContentPlaceHolder.cs
- PerspectiveCamera.cs
- VectorKeyFrameCollection.cs
- DeferredElementTreeState.cs
- Script.cs
- XamlSerializationHelper.cs
- DataGridViewAccessibleObject.cs
- TimeSpanMinutesConverter.cs
- DataGridViewButtonCell.cs
- HtmlInputImage.cs
- NavigateEvent.cs
- XmlSchemaValidator.cs
- NavigatingCancelEventArgs.cs
- HttpProfileGroupBase.cs
- XmlCDATASection.cs
- DataSourceCache.cs
- ColorPalette.cs
- Parameter.cs
- LayoutTable.cs
- TransformedBitmap.cs
- DataRowCollection.cs
- CryptographicAttribute.cs
- ActivationServices.cs
- FixedHyperLink.cs
- TreeNodeCollectionEditor.cs
- Variable.cs
- RadioButtonList.cs
- PropertyMetadata.cs
- IntPtr.cs
- CollectionDataContractAttribute.cs
- FixedBufferAttribute.cs
- TextEditorContextMenu.cs
- HitTestParameters3D.cs
- Activator.cs
- ManipulationCompletedEventArgs.cs
- InstanceOwner.cs
- XmlDataLoader.cs
- SerializationSectionGroup.cs
- PrintPreviewDialog.cs
- SqlCharStream.cs
- WindowsPen.cs
- EastAsianLunisolarCalendar.cs
- Symbol.cs
- ServiceDebugBehavior.cs
- DataControlFieldCell.cs
- DataSet.cs
- MarginsConverter.cs
- CompModSwitches.cs
- IdnElement.cs
- UnsafeNativeMethods.cs
- ConfigurationElementProperty.cs