Produced by Araxis Merge on 2/1/2017 2:57:27 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\Converters | ValidationErrorsToStringConverter.cs | Tue Dec 20 19:52:28 2016 UTC |
| 2 | Wed Feb 1 19:57:27 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 46 |
| 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 | using Syst em.Windows .Markup; | |||||
| 6 | using Syst em.Windows .Data; | |||||
| 7 | using Syst em.Collect ions.Objec tModel; | |||||
| 8 | using Syst em.Windows .Controls; | |||||
| 9 | using Syst em.Globali zation; | |||||
| 10 | ||||||
| 11 | namespace Microsoft. Crm.Sdk.Sa mples | |||||
| 12 | { | |||||
| 13 | [Value Conversion (typeof(Re adOnlyObse rvableColl ection<Val idationErr or>), type of(string) )] | |||||
| 14 | public class Val idationErr orsToStrin gConverter : MarkupE xtension, IValueConv erter | |||||
| 15 | { | |||||
| 16 | pu blic Valid ationError sToStringC onverter() | |||||
| 17 | { | |||||
| 18 | ||||||
| 19 | } | |||||
| 20 | pu blic overr ide object ProvideVa lue(IServi ceProvider servicePr ovider) | |||||
| 21 | { | |||||
| 22 | return n ew Validat ionErrorsT oStringCon verter(); | |||||
| 23 | } | |||||
| 24 | ||||||
| 25 | pu blic objec t Convert( object val ue, Type t argetType, object pa rameter, | |||||
| 26 | CultureI nfo cultur e) | |||||
| 27 | { | |||||
| 28 | ReadOnly Observable Collection <Validatio nError> er rors = | |||||
| 29 | valu e as ReadO nlyObserva bleCollect ion<Valida tionError> ; | |||||
| 30 | ||||||
| 31 | if (erro rs == null ) | |||||
| 32 | { | |||||
| 33 | retu rn string. Empty; | |||||
| 34 | } | |||||
| 35 | ||||||
| 36 | return s tring.Join ("\n", (fr om e in er rors | |||||
| 37 | se lect e.Err orContent as string) .ToArray() ); | |||||
| 38 | } | |||||
| 39 | ||||||
| 40 | pu blic objec t ConvertB ack(object value, Ty pe targetT ype, objec t paramete r, | |||||
| 41 | CultureI nfo cultur e) | |||||
| 42 | { | |||||
| 43 | throw ne w NotImple mentedExce ption(); | |||||
| 44 | } | |||||
| 45 | } | |||||
| 46 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.