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
- FlowDocumentPageViewerAutomationPeer.cs
- MessageDescriptionCollection.cs
- BamlCollectionHolder.cs
- HashCoreRequest.cs
- Inflater.cs
- _ProxyRegBlob.cs
- DbConnectionPoolGroup.cs
- ValidationRuleCollection.cs
- PatternMatcher.cs
- IERequestCache.cs
- SendMailErrorEventArgs.cs
- LicenseManager.cs
- ObjectNotFoundException.cs
- InputEventArgs.cs
- DataRowComparer.cs
- TemplateInstanceAttribute.cs
- DisplayInformation.cs
- CheckBox.cs
- RawStylusActions.cs
- _ContextAwareResult.cs
- DocumentOrderQuery.cs
- BamlRecordHelper.cs
- ResourceAssociationSet.cs
- PropertyTab.cs
- ProviderConnectionPointCollection.cs
- BuildProvidersCompiler.cs
- KeyNotFoundException.cs
- Schema.cs
- Types.cs
- SystemIPAddressInformation.cs
- AttributeEmitter.cs
- ProviderCommandInfoUtils.cs
- DirectoryInfo.cs
- DuplexChannel.cs
- FileIOPermission.cs
- DataGridViewEditingControlShowingEventArgs.cs
- HotSpotCollection.cs
- ConnectionProviderAttribute.cs
- SourceFileInfo.cs
- WebPartVerb.cs
- ConditionalAttribute.cs
- StructuralObject.cs
- TextDecoration.cs
- Barrier.cs
- DelegateSerializationHolder.cs
- SqlRecordBuffer.cs
- CheckBoxField.cs
- EventDriven.cs
- C14NUtil.cs
- SecurityKeyIdentifier.cs
- Publisher.cs
- PropertiesTab.cs
- ExecutionEngineException.cs
- SqlFacetAttribute.cs
- DataSetMappper.cs
- ControlIdConverter.cs
- PageBuildProvider.cs
- CodePrimitiveExpression.cs
- SafeHandle.cs
- HtmlImage.cs
- ChoiceConverter.cs
- TableDetailsCollection.cs
- SingleBodyParameterMessageFormatter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DockingAttribute.cs
- CompressionTransform.cs
- ReachFixedPageSerializer.cs
- SendMailErrorEventArgs.cs
- SqlXml.cs
- Token.cs
- TableSectionStyle.cs
- X509Chain.cs
- AssociationSetMetadata.cs
- MulticastNotSupportedException.cs
- CompilerCollection.cs
- XmlEncoding.cs
- HtmlEmptyTagControlBuilder.cs
- VectorConverter.cs
- basecomparevalidator.cs
- WeakReadOnlyCollection.cs
- WebZone.cs
- SafeProcessHandle.cs
- SafeCoTaskMem.cs
- RealProxy.cs
- IssuedSecurityTokenProvider.cs
- RemotingConfigParser.cs
- EntitySetBase.cs
- WebServiceReceiveDesigner.cs
- WinFormsSecurity.cs
- SortedSetDebugView.cs
- HexParser.cs
- TableColumn.cs
- HtmlForm.cs
- TimeSpanSecondsConverter.cs
- ReferencedCollectionType.cs
- ExtenderHelpers.cs
- WarningException.cs
- TreeNode.cs
- TextReader.cs
- PartialArray.cs