Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / MulticastIPAddressInformationCollection.cs / 1305376 / MulticastIPAddressInformationCollection.cs
using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Net.NetworkInformation{ public class MulticastIPAddressInformationCollection :ICollection{ Collection addresses = new Collection (); protected internal MulticastIPAddressInformationCollection(){ } /// public virtual void CopyTo(MulticastIPAddressInformation[] 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(MulticastIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(MulticastIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(MulticastIPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual MulticastIPAddressInformation this[int index] { get{ return (MulticastIPAddressInformation)addresses[index]; } } /// public virtual bool Remove(MulticastIPAddressInformation 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 MulticastIPAddressInformationCollection :ICollection { Collection addresses = new Collection (); protected internal MulticastIPAddressInformationCollection(){ } /// public virtual void CopyTo(MulticastIPAddressInformation[] 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(MulticastIPAddressInformation address) { throw new NotSupportedException(SR.GetString(SR.net_collection_readonly)); } internal void InternalAdd(MulticastIPAddressInformation address) { addresses.Add(address); } /// public virtual bool Contains(MulticastIPAddressInformation address) { return addresses.Contains(address); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } public virtual IEnumerator GetEnumerator() { return (IEnumerator ) addresses.GetEnumerator(); } public virtual MulticastIPAddressInformation this[int index] { get{ return (MulticastIPAddressInformation)addresses[index]; } } /// public virtual bool Remove(MulticastIPAddressInformation 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
- BitmapEffectDrawingContent.cs
- ReadOnlyPropertyMetadata.cs
- MenuAdapter.cs
- IpcChannel.cs
- CompareValidator.cs
- CellParaClient.cs
- XmlnsCompatibleWithAttribute.cs
- CapabilitiesAssignment.cs
- DateTime.cs
- Internal.cs
- StorageAssociationTypeMapping.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SafePEFileHandle.cs
- RestClientProxyHandler.cs
- IsolatedStorageSecurityState.cs
- Assert.cs
- SelectionItemPattern.cs
- IISUnsafeMethods.cs
- DataObject.cs
- XmlSubtreeReader.cs
- VersionValidator.cs
- MdiWindowListItemConverter.cs
- DataGridViewImageCell.cs
- DSACryptoServiceProvider.cs
- StylusPointPropertyInfoDefaults.cs
- RelationshipFixer.cs
- FloaterParaClient.cs
- ThrowHelper.cs
- ApplicationSettingsBase.cs
- InputScopeAttribute.cs
- HtmlElementCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- Tablet.cs
- EntitySqlException.cs
- ScriptManagerProxy.cs
- SHA256Managed.cs
- DataGridViewRowCancelEventArgs.cs
- ResourceReferenceExpressionConverter.cs
- TemplatePagerField.cs
- MethodCallConverter.cs
- CheckPair.cs
- BamlLocalizationDictionary.cs
- DeclarativeExpressionConditionDeclaration.cs
- ISFClipboardData.cs
- XmlSchemaSubstitutionGroup.cs
- SqlFormatter.cs
- ProtocolsSection.cs
- TextContainer.cs
- XmlTextWriter.cs
- Helpers.cs
- MessageDecoder.cs
- ApplicationManager.cs
- TableAutomationPeer.cs
- RuleSetBrowserDialog.cs
- DataGridViewRowConverter.cs
- GridView.cs
- WindowShowOrOpenTracker.cs
- control.ime.cs
- SchemaMapping.cs
- TypefaceCollection.cs
- HttpPostLocalhostServerProtocol.cs
- PersonalizationEntry.cs
- RsaElement.cs
- JsonUriDataContract.cs
- QueryableFilterUserControl.cs
- HttpModuleActionCollection.cs
- lengthconverter.cs
- DataGridViewDataErrorEventArgs.cs
- Module.cs
- And.cs
- SHA256Cng.cs
- SamlSubjectStatement.cs
- DatePickerAutomationPeer.cs
- DSGeneratorProblem.cs
- TaskFileService.cs
- DefaultTextStoreTextComposition.cs
- SrgsRule.cs
- ClientConfigurationHost.cs
- _NegoState.cs
- ColumnPropertiesGroup.cs
- SystemPens.cs
- FileLevelControlBuilderAttribute.cs
- DataSet.cs
- SqlNodeAnnotations.cs
- IpcClientManager.cs
- PeerEndPoint.cs
- IImplicitResourceProvider.cs
- TabPanel.cs
- Membership.cs
- OraclePermission.cs
- FontStyle.cs
- DataGridItem.cs
- TreeViewHitTestInfo.cs
- UTF8Encoding.cs
- FormsAuthenticationUser.cs
- BasicExpressionVisitor.cs
- OuterGlowBitmapEffect.cs
- CryptoHandle.cs
- SamlAuthorizationDecisionClaimResource.cs
- Math.cs