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
- DocumentOrderComparer.cs
- PathSegment.cs
- ColorIndependentAnimationStorage.cs
- EntityDescriptor.cs
- InputQueueChannelAcceptor.cs
- RowVisual.cs
- EqualityComparer.cs
- SystemUnicastIPAddressInformation.cs
- Quaternion.cs
- DbExpressionVisitor_TResultType.cs
- ResourceType.cs
- EventLogSession.cs
- WebPartEditorOkVerb.cs
- Vector3DIndependentAnimationStorage.cs
- DesignerContextDescriptor.cs
- FormCollection.cs
- FontWeights.cs
- TargetConverter.cs
- NGCSerializerAsync.cs
- PropertyEntry.cs
- LocationSectionRecord.cs
- HttpWriter.cs
- RawStylusActions.cs
- RevocationPoint.cs
- SQLChars.cs
- ReplacementText.cs
- IntegerValidatorAttribute.cs
- CustomAttributeFormatException.cs
- IntranetCredentialPolicy.cs
- HttpListenerPrefixCollection.cs
- Shape.cs
- SystemDiagnosticsSection.cs
- XmlQualifiedNameTest.cs
- CqlIdentifiers.cs
- BitmapCodecInfo.cs
- FlowLayoutPanel.cs
- PlainXmlWriter.cs
- XmlAnyAttributeAttribute.cs
- SelfIssuedAuthAsymmetricKey.cs
- PrimitiveXmlSerializers.cs
- ImplicitInputBrush.cs
- GridViewRowEventArgs.cs
- GeneralTransform3DGroup.cs
- dbenumerator.cs
- Base64Encoder.cs
- SoapSchemaImporter.cs
- ConfigXmlText.cs
- GeometryDrawing.cs
- DbConnectionPoolGroup.cs
- Attributes.cs
- Pen.cs
- BufferModesCollection.cs
- CodeSnippetCompileUnit.cs
- KernelTypeValidation.cs
- CmsInterop.cs
- TableCell.cs
- SetUserLanguageRequest.cs
- LongValidator.cs
- EncodingInfo.cs
- EntityStoreSchemaGenerator.cs
- CorrelationScope.cs
- TcpSocketManager.cs
- httpapplicationstate.cs
- RuntimeEnvironment.cs
- ConstraintConverter.cs
- SecurityPolicyVersion.cs
- GeneralTransform2DTo3DTo2D.cs
- ConfigDefinitionUpdates.cs
- SiteMapDataSourceView.cs
- TagMapInfo.cs
- UpDownBaseDesigner.cs
- Timer.cs
- Attributes.cs
- EmptyStringExpandableObjectConverter.cs
- OleDbTransaction.cs
- DataTableReader.cs
- WmpBitmapEncoder.cs
- SendKeys.cs
- ConditionCollection.cs
- UnicodeEncoding.cs
- BitmapMetadataEnumerator.cs
- DecimalAnimation.cs
- ToolStripItemGlyph.cs
- Accessible.cs
- CodeTypeDeclarationCollection.cs
- Internal.cs
- QuestionEventArgs.cs
- PathSegmentCollection.cs
- DataChangedEventManager.cs
- ToggleButtonAutomationPeer.cs
- _NegoState.cs
- DataGridViewRowHeaderCell.cs
- Assembly.cs
- TriggerCollection.cs
- SafeLocalMemHandle.cs
- PersonalizationAdministration.cs
- AuthenticationModuleElementCollection.cs
- SystemInformation.cs
- UnsafeNativeMethods.cs
- CodeTypeParameter.cs