938. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:36 PM Eastern Standard 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.

938.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\Tools\WebResourceUtility\Validation RegexValidationRule.cs Tue Dec 20 19:52:28 2016 UTC
2 Wed Feb 1 19:57:36 2017 UTC

938.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 54

938.3 Comparison options

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

938.4 Active regular expressions

No regular expressions were active.

938.5 Comparison detail

1   using Syst em;        
2   using Syst em.Collect ions.Gener ic;        
3   using Syst em.Linq;        
4   using Syst em.Text;        
5   using Syst em.Windows .Controls;        
6   using Syst em.Text.Re gularExpre ssions;        
7   using Syst em.Globali zation;        
8          
9   namespace  Microsoft. Crm.Sdk.Sa mples        
10   {        
11       public  class Reg exValidati onRule : V alidationR ule        
12       {        
13           pr ivate stri ng _patter n;        
14           pr ivate Rege x _regex;        
15           pr ivate stri ng _messag e;        
16          
17           pu blic strin g Pattern        
18           {        
19                get { re turn _patt ern; }        
20                set        
21                {        
22                    _pat tern = val ue;        
23                    _reg ex = new R egex(_patt ern,        
24                         (RegexOpti ons.Compil ed | Regex Options.Cu ltureInvar iant | Reg exOptions. IgnoreCase ));        
25                            
26                }        
27           }        
28          
29           pu blic strin g Message        
30           {        
31                get { re turn _mess age; }        
32                set        
33                {        
34                    _mes sage = val ue;        
35                }        
36           }        
37                   
38          
39           pu blic overr ide Valida tionResult  Validate( object val ue, Cultur eInfo ultu reInfo)        
40           {        
41                if (valu e != null)        
42                {        
43                    if ( _regex.IsM atch(value .ToString( )))        
44                    {        
45                         return new  Validatio nResult(fa lse, _mess age);        
46                    }        
47                }        
48                        
49                return n ew Validat ionResult( true, null );        
50                        
51           }        
52       }        
53          
54   }