Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Sockets / IPPacketInformation.cs / 1 / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetroSerializationManager.cs
- InputElement.cs
- XPathDocumentIterator.cs
- ScrollProperties.cs
- NotFiniteNumberException.cs
- QueryExpression.cs
- WebConfigManager.cs
- EdmProviderManifest.cs
- TimeSpanValidator.cs
- NameObjectCollectionBase.cs
- RepeaterItemCollection.cs
- ChtmlImageAdapter.cs
- SqlConnectionStringBuilder.cs
- ProtocolImporter.cs
- Screen.cs
- AdCreatedEventArgs.cs
- HtmlHead.cs
- WorkflowStateRollbackService.cs
- CodeGotoStatement.cs
- UnitySerializationHolder.cs
- Rules.cs
- CharAnimationUsingKeyFrames.cs
- ThemeDirectoryCompiler.cs
- PrimitiveXmlSerializers.cs
- DynamicQueryableWrapper.cs
- HelpFileFileNameEditor.cs
- ELinqQueryState.cs
- cookiecollection.cs
- SubclassTypeValidatorAttribute.cs
- TreeNodeBinding.cs
- Panel.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ServiceNameCollection.cs
- AsyncWaitHandle.cs
- RenderTargetBitmap.cs
- MdImport.cs
- StorageBasedPackageProperties.cs
- DictionarySectionHandler.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DataConnectionHelper.cs
- Tuple.cs
- Merger.cs
- SizeChangedInfo.cs
- XmlSchemaExternal.cs
- BlurEffect.cs
- ForwardPositionQuery.cs
- GeometryGroup.cs
- DesignTimeSiteMapProvider.cs
- KeyEventArgs.cs
- TableColumn.cs
- RichTextBox.cs
- RequestQueue.cs
- ColorTransform.cs
- HttpClientChannel.cs
- WebPartAuthorizationEventArgs.cs
- IgnoreSectionHandler.cs
- WorkerRequest.cs
- FixedSOMFixedBlock.cs
- OleDbConnectionFactory.cs
- SqlEnums.cs
- Nullable.cs
- QilReplaceVisitor.cs
- DataGridViewTextBoxEditingControl.cs
- RelationshipFixer.cs
- BitStack.cs
- ColorConvertedBitmap.cs
- URL.cs
- TextStore.cs
- DSASignatureFormatter.cs
- EnumBuilder.cs
- FormatterConverter.cs
- WindowsAuthenticationModule.cs
- CacheChildrenQuery.cs
- CommentEmitter.cs
- ToolStripOverflowButton.cs
- WorkflowQueueInfo.cs
- BatchParser.cs
- SiteOfOriginContainer.cs
- TypedRowHandler.cs
- RenderTargetBitmap.cs
- EnvironmentPermission.cs
- NetCodeGroup.cs
- DoubleSumAggregationOperator.cs
- CheckBoxField.cs
- ProfileManager.cs
- Image.cs
- DataRowCollection.cs
- Bidi.cs
- CheckedPointers.cs
- InstanceLockTracking.cs
- TableAdapterManagerGenerator.cs
- FileDialog_Vista_Interop.cs
- XmlObjectSerializerWriteContextComplex.cs
- DataObjectCopyingEventArgs.cs
- Walker.cs
- WindowsUpDown.cs
- EntityProxyFactory.cs
- PolygonHotSpot.cs
- MetafileHeaderWmf.cs
- DrawingGroup.cs