/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Libraries/ICSharpCode.Build.Tasks/Project/Resources.cs
45 строк
1 KB
Бондарев Иван
initial commit
14 май 2015, 22:35
14 май 2015, 22:35
e6e67c1
Код
Авторство
О чём код?
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Reflection; namespace ICSharpCode.Build.Tasks { internal static class Resources { public static string RunningCodeAnalysis { get { return GetTranslation("${res:ICSharpCode.Build.RunningCodeAnalysis}") ?? "Running Code Analysis..."; } } public static string CannotFindFxCop { get { return GetTranslation("${res:ICSharpCode.Build.CannotFindFxCop}") ?? "SharpDevelop cannot find FxCop. Please specify the MSBuild property 'FxCopDir'."; } } public static string CannotReadFxCopLogFile { get { return GetTranslation("${res:ICSharpCode.Build.CannotReadFxCopLogFile}") ?? "Cannot read FxCop log file:"; } } static bool initialized; static Type resourceService; static string GetTranslation(string key) { if (!initialized) { initialized = true; try { resourceService = Type.GetType("ICSharpCode.Core.StringParser, ICSharpCode.Core"); } catch {} } if (resourceService != null) { const BindingFlags flags = BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static; return (string)resourceService.InvokeMember("Parse", flags, null, null, new object[] { key }); } else { return null; } } } }