Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SourceSwitch.cs
- StubHelpers.cs
- NamedPipeTransportElement.cs
- CompilationSection.cs
- RegistryKey.cs
- StorageInfo.cs
- FormViewUpdateEventArgs.cs
- SystemIPGlobalStatistics.cs
- ButtonBaseAutomationPeer.cs
- XmlWriterTraceListener.cs
- ReadOnlyState.cs
- Exceptions.cs
- ResourceIDHelper.cs
- TemplateDefinition.cs
- future.cs
- ButtonBaseAdapter.cs
- SizeConverter.cs
- RectangleConverter.cs
- AssociationType.cs
- EdmToObjectNamespaceMap.cs
- Camera.cs
- CookielessHelper.cs
- ToolBar.cs
- StateManagedCollection.cs
- IgnorePropertiesAttribute.cs
- XmlSchemaObject.cs
- DataGridViewCheckBoxCell.cs
- xml.cs
- CodeAttributeDeclarationCollection.cs
- RegistryKey.cs
- BlurBitmapEffect.cs
- SHA384Managed.cs
- PartialArray.cs
- WebHeaderCollection.cs
- EntityDataSourceChangedEventArgs.cs
- SchemaHelper.cs
- ByteStack.cs
- EntityException.cs
- HttpRequestCacheValidator.cs
- XmlAnyAttributeAttribute.cs
- JournalEntryStack.cs
- EnumerableRowCollectionExtensions.cs
- MatrixConverter.cs
- ContravarianceAdapter.cs
- ProfileServiceManager.cs
- DeviceContexts.cs
- ToolboxDataAttribute.cs
- NamespaceInfo.cs
- ProxySimple.cs
- WsatServiceAddress.cs
- FormsAuthenticationUser.cs
- AuthenticationService.cs
- EventToken.cs
- AccessibleObject.cs
- EventItfInfo.cs
- DeleteMemberBinder.cs
- TemplatePagerField.cs
- CellCreator.cs
- MSAANativeProvider.cs
- CqlIdentifiers.cs
- Claim.cs
- Part.cs
- UMPAttributes.cs
- SafeFileMappingHandle.cs
- WrapperEqualityComparer.cs
- ScrollBar.cs
- ButtonStandardAdapter.cs
- OdbcTransaction.cs
- ApplicationGesture.cs
- WebPartConnectionsDisconnectVerb.cs
- AsyncCompletedEventArgs.cs
- SystemColorTracker.cs
- OrderablePartitioner.cs
- Application.cs
- PageCache.cs
- EventLogInformation.cs
- Base64WriteStateInfo.cs
- TemplateBindingExtension.cs
- XmlChildEnumerator.cs
- ObjectItemAttributeAssemblyLoader.cs
- X509Certificate.cs
- IChannel.cs
- XmlTextAttribute.cs
- IndependentAnimationStorage.cs
- SQLConvert.cs
- MatrixAnimationUsingPath.cs
- SafeSecurityHelper.cs
- ComAdminInterfaces.cs
- SQLInt64Storage.cs
- ReflectTypeDescriptionProvider.cs
- HierarchicalDataSourceControl.cs
- configsystem.cs
- AsyncCompletedEventArgs.cs
- DataList.cs
- BinaryObjectReader.cs
- ImageAutomationPeer.cs
- BaseAddressPrefixFilterElementCollection.cs
- DbParameterCollectionHelper.cs
- ShaperBuffers.cs
- TypographyProperties.cs