Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaComplexType.cs
- TransactionFlowProperty.cs
- VisualBrush.cs
- DataComponentMethodGenerator.cs
- FunctionQuery.cs
- ConversionHelper.cs
- DoubleStorage.cs
- TdsParserStaticMethods.cs
- XmlSchemaSequence.cs
- HwndAppCommandInputProvider.cs
- SelectorAutomationPeer.cs
- ProcessInfo.cs
- Clipboard.cs
- Point3DKeyFrameCollection.cs
- SamlSecurityTokenAuthenticator.cs
- MemberDomainMap.cs
- SHA1.cs
- FixedStringLookup.cs
- Int32AnimationBase.cs
- ContentWrapperAttribute.cs
- VirtualPath.cs
- TextEditorTyping.cs
- PageAction.cs
- Cursor.cs
- PlatformNotSupportedException.cs
- SafeMILHandleMemoryPressure.cs
- DeviceContext2.cs
- TitleStyle.cs
- PublisherIdentityPermission.cs
- RangeExpression.cs
- Stack.cs
- UserUseLicenseDictionaryLoader.cs
- SystemBrushes.cs
- AutomationProperties.cs
- peersecuritysettings.cs
- TextDocumentView.cs
- TemplateNameScope.cs
- SqlDataRecord.cs
- Timer.cs
- StackOverflowException.cs
- DataGridViewColumn.cs
- PasswordPropertyTextAttribute.cs
- FullTextState.cs
- WeakRefEnumerator.cs
- FontFaceLayoutInfo.cs
- PrimaryKeyTypeConverter.cs
- COAUTHINFO.cs
- SplineKeyFrames.cs
- TableRow.cs
- XmlConverter.cs
- FloatMinMaxAggregationOperator.cs
- Positioning.cs
- ProcessModelInfo.cs
- TimeoutValidationAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SystemFonts.cs
- EntityConnection.cs
- SystemThemeKey.cs
- CryptoConfig.cs
- SkinBuilder.cs
- AddInActivator.cs
- ParserContext.cs
- DependencyObjectProvider.cs
- XmlEncoding.cs
- PrtTicket_Editor.cs
- _OverlappedAsyncResult.cs
- GenerateScriptTypeAttribute.cs
- ZipQueryOperator.cs
- ReturnValue.cs
- TypeContext.cs
- TemplateNameScope.cs
- ShellProvider.cs
- XmlCharCheckingReader.cs
- ValueOfAction.cs
- ImageListStreamer.cs
- MessageQueueAccessControlEntry.cs
- WebPartDeleteVerb.cs
- RegexEditorDialog.cs
- DesignerActionItem.cs
- CodeIdentifiers.cs
- UdpContractFilterBehavior.cs
- ActiveXContainer.cs
- LoginAutoFormat.cs
- TaskHelper.cs
- MD5.cs
- ServiceDescription.cs
- SectionXmlInfo.cs
- DispatcherProcessingDisabled.cs
- WebPartRestoreVerb.cs
- DispatcherTimer.cs
- LinkedResource.cs
- EnumerableValidator.cs
- SoapElementAttribute.cs
- HandleCollector.cs
- LoginDesignerUtil.cs
- WebPartVerbsEventArgs.cs
- AssemblyBuilderData.cs
- Int32CollectionValueSerializer.cs
- AbsoluteQuery.cs
- Brush.cs