Produced by Araxis Merge on 10/26/2017 10:44:23 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Oct 27 02:44:23 2017 UTC | ||
| 2 | OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\BMS.Vista.TestEis\BMS.Utils | IIComparer.cs | Wed Oct 18 18:47:04 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 82 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | using Syst em; | |||||
| 2 | using Syst em.Collect ions.Gener ic; | |||||
| 3 | using Info World.HL7. ITS; | |||||
| 4 | ||||||
| 5 | namespace BMS.Utils | |||||
| 6 | { | |||||
| 7 | /// <s ummary> | |||||
| 8 | /// IE qualityCom parer used for the c ache dicti onary. | |||||
| 9 | /// </ summary> | |||||
| 10 | public class IIC omparer : IEqualityC omparer<II > | |||||
| 11 | { | |||||
| 12 | // / <summary > | |||||
| 13 | // / Static i nstance of IICompare r. | |||||
| 14 | // / </summar y> | |||||
| 15 | pu blic stati c IICompar er Instanc e = new II Comparer() ; | |||||
| 16 | ||||||
| 17 | // / <summary > | |||||
| 18 | // / Checks t o see whet her two II are the s ame by com paring ref erences | |||||
| 19 | // / or root and extens ion propet ies. | |||||
| 20 | // / </summar y> | |||||
| 21 | // / <param n ame="x">fi rst II</pa ram> | |||||
| 22 | // / <param n ame="y">se cond II</p aram> | |||||
| 23 | // / <returns ></returns > | |||||
| 24 | pu blic bool Equals(II x, II y) | |||||
| 25 | { | |||||
| 26 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 27 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 28 | { | |||||
| 29 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 30 | } | |||||
| 31 | try | |||||
| 32 | { | |||||
| 33 | if ( Object.Ref erenceEqua ls(x, y)) | |||||
| 34 | return tru e; | |||||
| 35 | ||||||
| 36 | if ( Object.Ref erenceEqua ls(x, null ) || Objec t.Referenc eEquals(y, null)) | |||||
| 37 | return fal se; | |||||
| 38 | ||||||
| 39 | retu rn string. Equals(x.r oot, y.roo t, StringC omparison. InvariantC ultureIgno reCase) | |||||
| 40 | && string. Equals(x.e xtension, y.extensio n, StringC omparison. InvariantC ultureIgno reCase); | |||||
| 41 | } | |||||
| 42 | finally | |||||
| 43 | { | |||||
| 44 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 45 | { | |||||
| 46 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 47 | } | |||||
| 48 | } | |||||
| 49 | } | |||||
| 50 | // / <summary > | |||||
| 51 | // / Computes the hashc ode for a II used wi thin the d ictionary based on t he | |||||
| 52 | // / same pro perties as the Equal s method u sing XOR o perator. | |||||
| 53 | // / </summar y> | |||||
| 54 | // / <param n ame="obj"> </param> | |||||
| 55 | // / <returns ></returns > | |||||
| 56 | pu blic int G etHashCode (II obj) | |||||
| 57 | { | |||||
| 58 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 59 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 60 | { | |||||
| 61 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 62 | } | |||||
| 63 | try | |||||
| 64 | { | |||||
| 65 | if ( Object.Ref erenceEqua ls(obj, nu ll)) | |||||
| 66 | return 0; | |||||
| 67 | ||||||
| 68 | int hashRoot = obj.root == null ? 0 : obj.ro ot.GetHash Code(); | |||||
| 69 | int hashExtens ion = obj. extension == null ? 0 : obj.ex tension.Ge tHashCode( ); | |||||
| 70 | ||||||
| 71 | retu rn hashRoo t ^ hashEx tension; | |||||
| 72 | } | |||||
| 73 | finally | |||||
| 74 | { | |||||
| 75 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 76 | { | |||||
| 77 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 78 | } | |||||
| 79 | } | |||||
| 80 | } | |||||
| 81 | } | |||||
| 82 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.