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
- TypeSystem.cs
- RecipientIdentity.cs
- Menu.cs
- Matrix3DStack.cs
- DataGridHeaderBorder.cs
- EdmMember.cs
- TabRenderer.cs
- DispatcherExceptionFilterEventArgs.cs
- TextEditorTables.cs
- PrePrepareMethodAttribute.cs
- MetadataPropertyCollection.cs
- ThreadPool.cs
- Stream.cs
- GetPageCompletedEventArgs.cs
- DesignerRegionMouseEventArgs.cs
- CalendarDay.cs
- GenericTypeParameterBuilder.cs
- DialogResultConverter.cs
- COM2PropertyPageUITypeConverter.cs
- DataGridItem.cs
- SignatureDescription.cs
- DataGridViewBand.cs
- DPTypeDescriptorContext.cs
- RegexNode.cs
- ParameterRetriever.cs
- ReflectTypeDescriptionProvider.cs
- ConfigurationManager.cs
- AnnotationMap.cs
- ColumnHeader.cs
- XmlSchemaValidator.cs
- GlobalizationSection.cs
- __Error.cs
- SafeArrayRankMismatchException.cs
- BitmapEffectGeneralTransform.cs
- EntityDataSourceSelectedEventArgs.cs
- ListCollectionView.cs
- IPCCacheManager.cs
- ClipboardProcessor.cs
- UIntPtr.cs
- CachedFontFace.cs
- CompiledAction.cs
- Floater.cs
- DataBindingExpressionBuilder.cs
- XmlObjectSerializerReadContext.cs
- FileRecordSequenceHelper.cs
- ValueProviderWrapper.cs
- InvokeDelegate.cs
- BinaryParser.cs
- AttributedMetaModel.cs
- DataObjectFieldAttribute.cs
- FragmentQueryKB.cs
- ScrollViewerAutomationPeer.cs
- EdmSchemaError.cs
- GridViewCancelEditEventArgs.cs
- _Win32.cs
- IBuiltInEvidence.cs
- SafeBitVector32.cs
- ExpressionEditor.cs
- SiteMapDataSourceView.cs
- FrameworkContentElement.cs
- TabControlEvent.cs
- Exceptions.cs
- SecurityHelper.cs
- UpdatePanelTriggerCollection.cs
- List.cs
- StandardMenuStripVerb.cs
- DisplayToken.cs
- GridViewRowCollection.cs
- Msmq.cs
- SmtpFailedRecipientException.cs
- linebase.cs
- Vector.cs
- PhysicalAddress.cs
- RectKeyFrameCollection.cs
- MsmqHostedTransportManager.cs
- TimelineGroup.cs
- BoundField.cs
- OleServicesContext.cs
- FormsAuthenticationModule.cs
- TextServicesDisplayAttribute.cs
- MessageBox.cs
- WmiEventSink.cs
- SrgsGrammar.cs
- WebPart.cs
- HybridObjectCache.cs
- PermissionAttributes.cs
- ApplicationTrust.cs
- MimeReflector.cs
- NativeMethods.cs
- AttachedProperty.cs
- SafeLocalAllocation.cs
- CommandField.cs
- BooleanProjectedSlot.cs
- log.cs
- PathSegment.cs
- SqlBulkCopyColumnMappingCollection.cs
- TaiwanCalendar.cs
- SchemaType.cs
- DbProviderFactoriesConfigurationHandler.cs
- PropertyStore.cs