Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / GatewayIPAddressInformationCollection.cs / 1 / GatewayIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class GatewayIPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); protected internal GatewayIPAddressInformationCollection(){ } /// public virtual void CopyTo(GatewayIPAddressInformation[] array, int offset) { addresses.CopyTo(array,offset); } /// public virtual int Count { get { return addresses.Count; } } public virtual bool IsReadOnly { get { return true; } } public virtual GatewayIPAddressInformation this[int index] { get{ return (GatewayIPAddressInformation)addresses[index]; } } /// public virtual void Add(GatewayIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(GatewayIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(GatewayIPAddressInformation address) { return addresses.Contains(address); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } /// public virtual bool Remove(GatewayIPAddressInformation 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
- ShapingEngine.cs
- WebContext.cs
- RectValueSerializer.cs
- _CommandStream.cs
- NativeMethods.cs
- ContravarianceAdapter.cs
- baseaxisquery.cs
- XmlArrayItemAttribute.cs
- ParallelRangeManager.cs
- XmlLanguageConverter.cs
- AddInPipelineAttributes.cs
- BamlTreeUpdater.cs
- QuadraticBezierSegment.cs
- Substitution.cs
- ImageFormat.cs
- EpmSyndicationContentDeSerializer.cs
- GridViewDeleteEventArgs.cs
- CodeCatchClause.cs
- Tracking.cs
- PerformanceCounterPermissionEntry.cs
- ApplicationSettingsBase.cs
- CompositeDataBoundControl.cs
- WindowManager.cs
- TextServicesHost.cs
- PeerTransportSecurityElement.cs
- DataGridViewCellLinkedList.cs
- CustomValidator.cs
- BamlBinaryReader.cs
- Behavior.cs
- URI.cs
- Expander.cs
- BuildProviderAppliesToAttribute.cs
- Misc.cs
- NotImplementedException.cs
- _SslSessionsCache.cs
- MarkupCompilePass2.cs
- SoapSchemaMember.cs
- PackageDocument.cs
- AttachedAnnotation.cs
- EncoderFallback.cs
- contentDescriptor.cs
- ExtenderControl.cs
- SettingsPropertyValueCollection.cs
- PlatformCulture.cs
- GridViewPageEventArgs.cs
- ListViewItem.cs
- EndpointConfigContainer.cs
- PropertyPathConverter.cs
- KeysConverter.cs
- XmlSerializableReader.cs
- PasswordBoxAutomationPeer.cs
- SignatureSummaryDialog.cs
- ChtmlTextWriter.cs
- RectConverter.cs
- DropDownList.cs
- ShaderEffect.cs
- DataTable.cs
- DateBoldEvent.cs
- ClrPerspective.cs
- AssociationType.cs
- OracleNumber.cs
- PathNode.cs
- AccessKeyManager.cs
- GeneratedCodeAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs
- ExceptionUtil.cs
- ArrayList.cs
- SignatureHelper.cs
- DataTableReader.cs
- TableLayoutRowStyleCollection.cs
- MulticastIPAddressInformationCollection.cs
- SqlDataSourceCache.cs
- InternalSendMessage.cs
- ProcessHost.cs
- IDictionary.cs
- ConfigurationElementCollection.cs
- XmlDataDocument.cs
- ChangeBlockUndoRecord.cs
- CodeMemberProperty.cs
- DateTimeConverter2.cs
- ScrollProviderWrapper.cs
- TemplateComponentConnector.cs
- basenumberconverter.cs
- ChineseLunisolarCalendar.cs
- PersonalizationState.cs
- Mouse.cs
- BaseValidator.cs
- LinearGradientBrush.cs
- CharConverter.cs
- EmptyWithCancelationCheckWorkItem.cs
- C14NUtil.cs
- PlaceHolder.cs
- MsmqHostedTransportManager.cs
- TimeoutTimer.cs
- IdentityManager.cs
- UnconditionalPolicy.cs
- InProcStateClientManager.cs
- Setter.cs
- StructuredTypeEmitter.cs
- MetafileHeader.cs