Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / NetworkInformation / ipaddressinformationcollection.cs / 1 / ipaddressinformationcollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class IPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); internal IPAddressInformationCollection(){ } /// public virtual void CopyTo(IPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } /// public virtual void Add(IPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(IPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(IPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual IPAddressInformation this[int index] { get{ return (IPAddressInformation)addresses[index]; } } /// public virtual bool Remove(IPAddressInformation 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 IPAddressInformationCollection :ICollection { Collection addresses = new Collection (); internal IPAddressInformationCollection(){ } /// public virtual void CopyTo(IPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } /// public virtual void Add(IPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(IPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(IPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual IPAddressInformation this[int index] { get{ return (IPAddressInformation)addresses[index]; } } /// public virtual bool Remove(IPAddressInformation 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
- DataGridViewSortCompareEventArgs.cs
- InkCollectionBehavior.cs
- SetterBase.cs
- DataGridViewRowCollection.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DataGridAutomationPeer.cs
- Literal.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- InternalEnumValidatorAttribute.cs
- KnownAssembliesSet.cs
- ProviderCollection.cs
- BamlBinaryReader.cs
- WinEventTracker.cs
- TextTreeInsertElementUndoUnit.cs
- MultiSelector.cs
- MsdtcClusterUtils.cs
- StringBuilder.cs
- XmlSchemaGroup.cs
- SqlDataAdapter.cs
- BinaryMessageEncoder.cs
- UserPersonalizationStateInfo.cs
- SecurityTokenException.cs
- QueryResponse.cs
- CollectionViewGroupRoot.cs
- HwndAppCommandInputProvider.cs
- FragmentNavigationEventArgs.cs
- Transform.cs
- DllNotFoundException.cs
- CatalogPartChrome.cs
- PtsContext.cs
- AnnotationResource.cs
- Pair.cs
- DeploymentSectionCache.cs
- Stack.cs
- BaseProcessProtocolHandler.cs
- ListViewTableCell.cs
- SpeechRecognizer.cs
- ImageMap.cs
- AsymmetricCryptoHandle.cs
- XmlCountingReader.cs
- WebEncodingValidator.cs
- EndpointAddress10.cs
- Message.cs
- EnumerableRowCollection.cs
- ChannelServices.cs
- LostFocusEventManager.cs
- Assert.cs
- TransformValueSerializer.cs
- DataGridToolTip.cs
- Animatable.cs
- CompositionTarget.cs
- PropertyPathWorker.cs
- WebContentFormatHelper.cs
- TextEffectCollection.cs
- PropertyHelper.cs
- EventSourceCreationData.cs
- Message.cs
- DataStorage.cs
- DataTableTypeConverter.cs
- WindowsContainer.cs
- BindUriHelper.cs
- _HeaderInfoTable.cs
- ArgumentNullException.cs
- BitmapEffectInputData.cs
- NamespaceQuery.cs
- EngineSiteSapi.cs
- ExtensionQuery.cs
- BufferManager.cs
- DecodeHelper.cs
- SupportingTokenProviderSpecification.cs
- WarningException.cs
- followingsibling.cs
- ToolStripManager.cs
- XmlChoiceIdentifierAttribute.cs
- ValidateNames.cs
- RadioButton.cs
- DesignerAdapterUtil.cs
- WebScriptClientGenerator.cs
- ContentElementAutomationPeer.cs
- Calendar.cs
- M3DUtil.cs
- Certificate.cs
- IdentifierService.cs
- BorderGapMaskConverter.cs
- NavigationPropertyEmitter.cs
- DefaultBinder.cs
- translator.cs
- CommandManager.cs
- OdbcHandle.cs
- EdmSchemaError.cs
- SmtpNegotiateAuthenticationModule.cs
- InvokeWebServiceDesigner.cs
- MD5.cs
- loginstatus.cs
- HMACSHA512.cs
- GlyphRun.cs
- FlowLayoutSettings.cs
- StreamReader.cs
- EdmPropertyAttribute.cs
- BuildProviderCollection.cs