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.
| # | 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\Model | ResourceExtensions.cs | Tue Dec 20 19:52:28 2016 UTC |
| 2 | Wed Feb 1 19:57:36 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 64 |
| 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 Syst em.Linq; | |||||
| 4 | using Syst em.Text; | |||||
| 5 | ||||||
| 6 | namespace WebResourc eUtility.M odel | |||||
| 7 | { | |||||
| 8 | public static cl ass Resour ceExtensio ns | |||||
| 9 | { | |||||
| 10 | // / <summary > | |||||
| 11 | // / validFil eExtension s : a util ity array for valid file exten sions repr esenting W eb Resourc es | |||||
| 12 | // / </summar y> | |||||
| 13 | pu blic stati c String[] ValidExte nsions = { ".css", " .xml", ".g if", ".htm ", ".html" , ".ico", ".jpg", ". png", ".js ", ".xap", ".xsl", " .xslt" }; | |||||
| 14 | ||||||
| 15 | / /Provides the intege r value fo r the type of Web Re source | |||||
| 16 | pu blic enum WebResourc eType | |||||
| 17 | { | |||||
| 18 | Html = 1 , | |||||
| 19 | Css = 2, | |||||
| 20 | JScript = 3, | |||||
| 21 | Xml = 4, | |||||
| 22 | Png = 5, | |||||
| 23 | Jpg = 6, | |||||
| 24 | Gif = 7, | |||||
| 25 | Silverli ght = 8, | |||||
| 26 | Styleshe et_XSL = 9 , | |||||
| 27 | Ico = 10 | |||||
| 28 | } | |||||
| 29 | ||||||
| 30 | pu blic stati c WebResou rceType Co nvertStrin gExtension (string ex tensionVal ue) | |||||
| 31 | { | |||||
| 32 | switch ( extensionV alue.ToLow er()) | |||||
| 33 | { | |||||
| 34 | case "css": | |||||
| 35 | return Web ResourceTy pe.Css; | |||||
| 36 | case "xml": | |||||
| 37 | return Web ResourceTy pe.Xml; | |||||
| 38 | case "gif": | |||||
| 39 | return Web ResourceTy pe.Gif; | |||||
| 40 | case "htm": | |||||
| 41 | return Web ResourceTy pe.Html; | |||||
| 42 | case "html": | |||||
| 43 | return Web ResourceTy pe.Html; | |||||
| 44 | case "ico": | |||||
| 45 | return Web ResourceTy pe.Ico; | |||||
| 46 | case "jpg": | |||||
| 47 | return Web ResourceTy pe.Jpg; | |||||
| 48 | case "png": | |||||
| 49 | return Web ResourceTy pe.Png; | |||||
| 50 | case "js": | |||||
| 51 | return Web ResourceTy pe.JScript ; | |||||
| 52 | case "xap": | |||||
| 53 | return Web ResourceTy pe.Silverl ight; | |||||
| 54 | case "xsl": | |||||
| 55 | return Web ResourceTy pe.Stylesh eet_XSL; | |||||
| 56 | case "xslt": | |||||
| 57 | return Web ResourceTy pe.Stylesh eet_XSL; | |||||
| 58 | defa ult: | |||||
| 59 | throw new ArgumentOu tOfRangeEx ception(st ring.Forma t("\"{0}\" is not re cognized a s a valid file exten sion for a Web Resou rce.", ext ensionValu e.ToLower( ))); | |||||
| 60 | ||||||
| 61 | } | |||||
| 62 | } | |||||
| 63 | } | |||||
| 64 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.