Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PageRequestManager.cs
- Int16AnimationBase.cs
- basevalidator.cs
- OneOfConst.cs
- LinkLabel.cs
- ListDictionaryInternal.cs
- CodeStatement.cs
- AutomationPropertyInfo.cs
- BrowsableAttribute.cs
- ConfigurationElement.cs
- TextEditorLists.cs
- HideDisabledControlAdapter.cs
- DataGridItemAttachedStorage.cs
- ExpressionBuilder.cs
- RecommendedAsConfigurableAttribute.cs
- SetMemberBinder.cs
- IImplicitResourceProvider.cs
- FormatPage.cs
- XmlILModule.cs
- BinaryReader.cs
- ADConnectionHelper.cs
- SqlMethodAttribute.cs
- BindingEditor.xaml.cs
- IndexerNameAttribute.cs
- XmlSerializableWriter.cs
- CatalogPartChrome.cs
- FormatConvertedBitmap.cs
- BitmapCodecInfo.cs
- BulletDecorator.cs
- EmbeddedObject.cs
- QuadraticBezierSegment.cs
- Keyboard.cs
- StopStoryboard.cs
- TimestampInformation.cs
- DataGridColumn.cs
- LogStore.cs
- RecordsAffectedEventArgs.cs
- ImportCatalogPart.cs
- WebMessageEncodingElement.cs
- Clock.cs
- MetadataArtifactLoaderComposite.cs
- SQLConvert.cs
- RowToFieldTransformer.cs
- Registry.cs
- ListenDesigner.cs
- Polygon.cs
- DataException.cs
- SystemIPInterfaceProperties.cs
- Scripts.cs
- FusionWrap.cs
- StylusCaptureWithinProperty.cs
- InkCanvasSelection.cs
- GZipStream.cs
- NativeMethods.cs
- GridErrorDlg.cs
- XmlSchemaObjectCollection.cs
- SoapTypeAttribute.cs
- WhileDesigner.cs
- FontInfo.cs
- HttpProfileBase.cs
- ObjectQueryProvider.cs
- TrackingProfile.cs
- NetworkCredential.cs
- DbConnectionPoolGroupProviderInfo.cs
- HostedHttpContext.cs
- MessageDroppedTraceRecord.cs
- HttpWriter.cs
- MultitargetUtil.cs
- Cursor.cs
- SecurityManager.cs
- ControlValuePropertyAttribute.cs
- X509SecurityTokenAuthenticator.cs
- ResolveResponse.cs
- Set.cs
- DiffuseMaterial.cs
- NameValuePermission.cs
- InvalidAsynchronousStateException.cs
- TailCallAnalyzer.cs
- TimelineGroup.cs
- ECDiffieHellman.cs
- WebPartEditorApplyVerb.cs
- PropertyDescriptorComparer.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DataConnectionHelper.cs
- DataGridRowClipboardEventArgs.cs
- FieldBuilder.cs
- SerializationAttributes.cs
- OdbcConnectionOpen.cs
- SByteStorage.cs
- FrugalList.cs
- RIPEMD160.cs
- LocalIdKeyIdentifierClause.cs
- DBSchemaRow.cs
- SafeRegistryHandle.cs
- BinaryFormatter.cs
- KeyConstraint.cs
- TraceHandlerErrorFormatter.cs
- Unit.cs
- ItemsChangedEventArgs.cs
- ActivityWithResult.cs