Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / IPPacketInformation.cs / 1305376 / IPPacketInformation.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System.Net; public struct IPPacketInformation { IPAddress address; int networkInterface; internal IPPacketInformation(IPAddress address, int networkInterface){ this.address = address; this.networkInterface = networkInterface; } public IPAddress Address { get{ return address; } } public int Interface { get{ return networkInterface; } } public static bool operator == (IPPacketInformation packetInformation1, IPPacketInformation packetInformation2 ) { return packetInformation1.Equals(packetInformation2); } public static bool operator != (IPPacketInformation packetInformation1, IPPacketInformation packetInformation2 ) { return !packetInformation1.Equals(packetInformation2); } public override bool Equals(object comparand) { if ((object) comparand == null) { return false; } if (!(comparand is IPPacketInformation)) return false; IPPacketInformation obj = (IPPacketInformation) comparand; if (address.Equals(obj.address) && networkInterface == obj.networkInterface) return (true); return false; } public override int GetHashCode() { return address.GetHashCode() + networkInterface.GetHashCode(); } }; // enum SocketFlags } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ViewStateModeByIdAttribute.cs
- FileInfo.cs
- FilterRepeater.cs
- ActionNotSupportedException.cs
- RegexRunnerFactory.cs
- IList.cs
- ConstrainedDataObject.cs
- XmlConvert.cs
- CustomCredentialPolicy.cs
- SiteMapNodeCollection.cs
- PrivateFontCollection.cs
- SqlIdentifier.cs
- WebHttpDispatchOperationSelectorData.cs
- ACE.cs
- ProtocolsConfigurationEntry.cs
- TextSelectionHighlightLayer.cs
- CodeMethodMap.cs
- ServiceOperation.cs
- TablePatternIdentifiers.cs
- StylusButton.cs
- Size.cs
- SelectorItemAutomationPeer.cs
- TCPClient.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- LockCookie.cs
- ProfileSettings.cs
- UIElementHelper.cs
- DataColumnMapping.cs
- RawTextInputReport.cs
- RectangleF.cs
- TracedNativeMethods.cs
- ConsumerConnectionPoint.cs
- complextypematerializer.cs
- PageThemeParser.cs
- ManagementOperationWatcher.cs
- LinqDataSourceContextEventArgs.cs
- RelatedView.cs
- CreateRefExpr.cs
- Brush.cs
- SecurityToken.cs
- HttpServerUtilityBase.cs
- BitmapFrameDecode.cs
- SvcMapFileLoader.cs
- FrameworkContentElement.cs
- WorkflowOperationBehavior.cs
- Choices.cs
- DependencyObjectPropertyDescriptor.cs
- DocumentViewerAutomationPeer.cs
- ExpressionPrefixAttribute.cs
- CompilerParameters.cs
- SegmentInfo.cs
- DocumentXPathNavigator.cs
- DrawingGroup.cs
- DragDrop.cs
- XmlWellformedWriter.cs
- BamlLocalizationDictionary.cs
- KeyEvent.cs
- RequestTimeoutManager.cs
- ProtocolsConfigurationEntry.cs
- AssociationTypeEmitter.cs
- EntityDesignerDataSourceView.cs
- SqlCacheDependencyDatabaseCollection.cs
- DesignTimeHTMLTextWriter.cs
- ClientConfigurationHost.cs
- ItemCollection.cs
- SessionPageStateSection.cs
- DataGridViewComponentPropertyGridSite.cs
- InvokePattern.cs
- WebBrowserHelper.cs
- TransactionalPackage.cs
- TypeElement.cs
- BitmapCodecInfo.cs
- QilDataSource.cs
- StreamResourceInfo.cs
- ApplySecurityAndSendAsyncResult.cs
- CompositionDesigner.cs
- Hash.cs
- StrongName.cs
- SystemException.cs
- WCFModelStrings.Designer.cs
- TreeNodeClickEventArgs.cs
- GraphicsPath.cs
- SymbolTable.cs
- CfgRule.cs
- DataGridCell.cs
- DetailsViewRowCollection.cs
- RegexCharClass.cs
- BrowserCapabilitiesCodeGenerator.cs
- PowerModeChangedEventArgs.cs
- CfgArc.cs
- GridViewRowPresenterBase.cs
- UInt16Converter.cs
- AsyncPostBackErrorEventArgs.cs
- Vector.cs
- XmlFormatExtensionAttribute.cs
- HttpDebugHandler.cs
- RijndaelManaged.cs
- IdentityHolder.cs
- DataColumnMappingCollection.cs
- TypedReference.cs