Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Pair.cs / 1305376 / Pair.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl { internal struct Int32Pair { private int left; private int right; public Int32Pair(int left, int right) { this.left = left; this.right = right; } public int Left { get { return this.left ; } } public int Right { get { return this.right; } } public override bool Equals(object other) { if (other is Int32Pair) { Int32Pair o = (Int32Pair) other; return this.left == o.left && this.right == o.right; } return false; } public override int GetHashCode() { return this.left.GetHashCode() ^ this.right.GetHashCode(); } } internal struct StringPair { private string left; private string right; public StringPair(string left, string right) { this.left = left; this.right = right; } public string Left { get { return this.left ; } } public string Right { get { return this.right; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl { internal struct Int32Pair { private int left; private int right; public Int32Pair(int left, int right) { this.left = left; this.right = right; } public int Left { get { return this.left ; } } public int Right { get { return this.right; } } public override bool Equals(object other) { if (other is Int32Pair) { Int32Pair o = (Int32Pair) other; return this.left == o.left && this.right == o.right; } return false; } public override int GetHashCode() { return this.left.GetHashCode() ^ this.right.GetHashCode(); } } internal struct StringPair { private string left; private string right; public StringPair(string left, string right) { this.left = left; this.right = right; } public string Left { get { return this.left ; } } public string Right { get { return this.right; } } } } // 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
- Style.cs
- FormsIdentity.cs
- Transform3D.cs
- WsatConfiguration.cs
- HandledEventArgs.cs
- CngProvider.cs
- WorkflowRuntimeServicesBehavior.cs
- HandleExceptionArgs.cs
- EntityDataSourceSelectedEventArgs.cs
- ControlAdapter.cs
- ConnectionStringsSection.cs
- TabItemAutomationPeer.cs
- RuntimeVariablesExpression.cs
- DbParameterCollection.cs
- SqlNotificationEventArgs.cs
- ConsoleCancelEventArgs.cs
- ContextStack.cs
- Matrix.cs
- ResourcePart.cs
- TableLayoutPanelBehavior.cs
- documentsequencetextview.cs
- WebException.cs
- GlyphTypeface.cs
- Figure.cs
- DragStartedEventArgs.cs
- CollectionEditVerbManager.cs
- ValidationEventArgs.cs
- HandleScope.cs
- Page.cs
- AmbientLight.cs
- ProviderSettings.cs
- SoapEnumAttribute.cs
- UxThemeWrapper.cs
- Point3DCollection.cs
- Errors.cs
- Section.cs
- XmlReturnReader.cs
- IListConverters.cs
- PermissionRequestEvidence.cs
- TargetConverter.cs
- ConstraintEnumerator.cs
- SymbolType.cs
- LZCodec.cs
- DrawingImage.cs
- MessageSecurityVersion.cs
- FormViewInsertedEventArgs.cs
- SystemIPAddressInformation.cs
- XmlRootAttribute.cs
- DependencyProperty.cs
- DoubleUtil.cs
- Int16.cs
- CrossAppDomainChannel.cs
- safesecurityhelperavalon.cs
- FontSizeConverter.cs
- StylusPointCollection.cs
- ServiceActivationException.cs
- BatchWriter.cs
- ConnectionConsumerAttribute.cs
- BCLDebug.cs
- DetailsViewInsertedEventArgs.cs
- Int16Converter.cs
- GridViewPageEventArgs.cs
- ObjectConverter.cs
- CustomSignedXml.cs
- VirtualPath.cs
- TraceSection.cs
- ListManagerBindingsCollection.cs
- CursorConverter.cs
- QueryOutputWriterV1.cs
- EditorOptionAttribute.cs
- __ConsoleStream.cs
- RenderData.cs
- PersonalizationStateInfo.cs
- AppDomainProtocolHandler.cs
- OLEDB_Enum.cs
- HostingPreferredMapPath.cs
- NameScopePropertyAttribute.cs
- UriTemplateTableMatchCandidate.cs
- InvokeProviderWrapper.cs
- ClientBuildManager.cs
- HandledMouseEvent.cs
- WebPartActionVerb.cs
- CertificateManager.cs
- Function.cs
- ModelPerspective.cs
- ReliableChannelListener.cs
- SendActivityValidator.cs
- ContextMarshalException.cs
- TextRangeEditLists.cs
- InputLanguageCollection.cs
- XamlInt32CollectionSerializer.cs
- SerialStream.cs
- Token.cs
- OleDbWrapper.cs
- ListBoxItem.cs
- DeviceContexts.cs
- BooleanToVisibilityConverter.cs
- TextOnlyOutput.cs
- ControlPaint.cs
- InfiniteIntConverter.cs