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
- Byte.cs
- DeclaredTypeElement.cs
- SystemTcpConnection.cs
- ButtonBaseDesigner.cs
- OneOfTypeConst.cs
- ThreadLocal.cs
- AnonymousIdentificationSection.cs
- ArrayWithOffset.cs
- clipboard.cs
- TemplatedMailWebEventProvider.cs
- DiscoveryMessageSequenceCD1.cs
- ScriptManagerProxy.cs
- DropDownHolder.cs
- ListParaClient.cs
- PictureBox.cs
- ColumnWidthChangingEvent.cs
- WebPartRestoreVerb.cs
- InkCanvasSelection.cs
- RelationshipEndMember.cs
- XmlEncApr2001.cs
- AsyncStreamReader.cs
- ContainerParagraph.cs
- WsdlHelpGeneratorElement.cs
- wgx_sdk_version.cs
- XmlObjectSerializerWriteContextComplex.cs
- IndentTextWriter.cs
- WindowsGraphicsCacheManager.cs
- WindowsRebar.cs
- MachineSettingsSection.cs
- XmlSchemaIdentityConstraint.cs
- TextContainer.cs
- FillBehavior.cs
- Rotation3DKeyFrameCollection.cs
- RegionIterator.cs
- SubpageParaClient.cs
- TypeListConverter.cs
- MessageBox.cs
- SqlNode.cs
- ControlBuilder.cs
- RectValueSerializer.cs
- AuthenticationModuleElementCollection.cs
- RoleGroup.cs
- AQNBuilder.cs
- ClientTarget.cs
- Header.cs
- GridViewRowCollection.cs
- FormConverter.cs
- WindowManager.cs
- SQLUtility.cs
- webbrowsersite.cs
- BoolExpressionVisitors.cs
- StrokeNodeEnumerator.cs
- HelpProvider.cs
- ArgumentDesigner.xaml.cs
- ExceptionHelpers.cs
- Ops.cs
- Select.cs
- SerializationUtilities.cs
- SqlMethodAttribute.cs
- InternalCache.cs
- NativeBuffer.cs
- Color.cs
- Geometry.cs
- BindingOperations.cs
- RangeValidator.cs
- RangeValuePatternIdentifiers.cs
- Point3DAnimationUsingKeyFrames.cs
- RoutedEventConverter.cs
- RedBlackList.cs
- SafeMILHandle.cs
- CompositeTypefaceMetrics.cs
- AlignmentXValidation.cs
- BamlRecords.cs
- WindowsSysHeader.cs
- Label.cs
- UnknownBitmapDecoder.cs
- FrameworkElementAutomationPeer.cs
- KeyValuePair.cs
- UserMapPath.cs
- NullableDoubleSumAggregationOperator.cs
- SimpleTextLine.cs
- SafeBitVector32.cs
- WindowsUpDown.cs
- HttpGetProtocolReflector.cs
- SelectionProviderWrapper.cs
- OpCodes.cs
- WindowsTooltip.cs
- QilCloneVisitor.cs
- PointKeyFrameCollection.cs
- SQLBytesStorage.cs
- BindingValueChangedEventArgs.cs
- _HTTPDateParse.cs
- EnumMember.cs
- ArgumentNullException.cs
- RestHandler.cs
- DataKey.cs
- ScrollEventArgs.cs
- QilIterator.cs
- FormsAuthenticationTicket.cs
- ObjectStateEntry.cs