This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Vastec.Ocr.Evaluator.Wpf | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using Autofac; | |
| using Caliburn.Micro; | |
| using Properties; | |
| using ViewModels; | |
| /// <remarks> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Exception Helper extension methods for using Data dictionary. | |
| /// </summary> | |
| public static class ExceptionExtensions | |
| { | |
| public static bool HasData(this Exception ex, Func<object, bool> keyFilter) | |
| { | |
| keyFilter = keyFilter ?? (o => true); | |
| return ex.Data.Cast<DictionaryEntry>().Any(datum => keyFilter(datum.Key)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class LockedFileHelper | |
| { | |
| public static bool IsFileLocked(string fileName) | |
| { | |
| return IsFileLocked(new FileInfo(fileName)); | |
| } | |
| public static bool IsFileLocked(FileInfo file) | |
| { | |
| FileStream stream = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace DynamicLinqToXml | |
| { | |
| using System.Dynamic; | |
| using System.Text; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| using Newtonsoft.Json; | |
| [TestClass] |
NewerOlder