Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / UnicastIPAddressInformationCollection.cs / 1 / UnicastIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class UnicastIPAddressInformationCollection :ICollection{ Collection addresses = new Collection () ; protected internal UnicastIPAddressInformationCollection(){ } /// public virtual void CopyTo(UnicastIPAddressInformation[] 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(UnicastIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(UnicastIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(UnicastIPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } // Consider removing. public virtual UnicastIPAddressInformation this[int index] { get{ return (UnicastIPAddressInformation)addresses[index]; } } /// public virtual bool Remove(UnicastIPAddressInformation 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
- MethodToken.cs
- ConfigurationStrings.cs
- XPathDocumentBuilder.cs
- HyperLink.cs
- CustomCategoryAttribute.cs
- FileSystemWatcher.cs
- TriggerCollection.cs
- DiscoveryExceptionDictionary.cs
- QueryableDataSourceView.cs
- InputProcessorProfilesLoader.cs
- SqlUserDefinedAggregateAttribute.cs
- DependentList.cs
- exports.cs
- TypeDescriptionProviderAttribute.cs
- WindowsScrollBarBits.cs
- TextSimpleMarkerProperties.cs
- SequenceQuery.cs
- CacheRequest.cs
- RotateTransform.cs
- IisTraceListener.cs
- SplitterCancelEvent.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- GregorianCalendar.cs
- XmlNavigatorFilter.cs
- XmlHierarchyData.cs
- ColorMatrix.cs
- dsa.cs
- PeerNameRecord.cs
- ELinqQueryState.cs
- Dispatcher.cs
- Processor.cs
- SecurityKeyType.cs
- ObjectTag.cs
- TextDocumentView.cs
- AssemblyBuilder.cs
- Effect.cs
- WorkerRequest.cs
- XDeferredAxisSource.cs
- DivideByZeroException.cs
- SafeNativeMemoryHandle.cs
- DBSqlParser.cs
- DataTemplateKey.cs
- HostedHttpTransportManager.cs
- SmtpSection.cs
- AutoResizedEvent.cs
- Stack.cs
- GridErrorDlg.cs
- FunctionImportMapping.cs
- CompoundFileStreamReference.cs
- BamlStream.cs
- DbProviderConfigurationHandler.cs
- DefaultTextStore.cs
- DynamicEndpointElement.cs
- GifBitmapEncoder.cs
- FlowPosition.cs
- SrgsElementFactoryCompiler.cs
- WebPartCollection.cs
- TransferRequestHandler.cs
- CodeNamespace.cs
- InvalidPrinterException.cs
- SQLDecimal.cs
- PointUtil.cs
- WebPartCatalogAddVerb.cs
- Label.cs
- AnnotationResource.cs
- StateFinalizationDesigner.cs
- WebConfigurationHostFileChange.cs
- RequestReplyCorrelator.cs
- EUCJPEncoding.cs
- SecuritySessionFilter.cs
- ImageMapEventArgs.cs
- PackageStore.cs
- RegularExpressionValidator.cs
- SimpleWebHandlerParser.cs
- WSSecurityXXX2005.cs
- GeometryGroup.cs
- AnalyzedTree.cs
- COMException.cs
- ResourceDescriptionAttribute.cs
- EntitySet.cs
- FormatSettings.cs
- RuntimeArgumentHandle.cs
- RequiredFieldValidator.cs
- BuildProviderAppliesToAttribute.cs
- Zone.cs
- EditorPartCollection.cs
- CompilationSection.cs
- Decorator.cs
- SecurityDescriptor.cs
- SecurityUtils.cs
- UnsafeNativeMethodsTablet.cs
- ClientType.cs
- GeneralTransform3DTo2D.cs
- PriorityChain.cs
- QueuePathEditor.cs
- TransactionManager.cs
- StylusCollection.cs
- X509Certificate.cs
- ButtonPopupAdapter.cs
- ToolStripPanelDesigner.cs