Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ILLink.Tasks/Utils.cs')
-rw-r--r--src/ILLink.Tasks/Utils.cs31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/ILLink.Tasks/Utils.cs b/src/ILLink.Tasks/Utils.cs
index bbaf45613..afd544245 100644
--- a/src/ILLink.Tasks/Utils.cs
+++ b/src/ILLink.Tasks/Utils.cs
@@ -2,22 +2,25 @@ using System;
using Mono.Cecil;
using System.Linq;
-public static class Utils
+namespace ILLink.Tasks
{
- public static bool IsManagedAssembly (string fileName)
+ public static class Utils
{
- try {
- ModuleDefinition module = ModuleDefinition.ReadModule (fileName);
- return !IsCPPCLIAssembly (module);
- } catch (BadImageFormatException) {
- return false;
+ public static bool IsManagedAssembly (string fileName)
+ {
+ try {
+ ModuleDefinition module = ModuleDefinition.ReadModule (fileName);
+ return !IsCPPCLIAssembly (module);
+ } catch (BadImageFormatException) {
+ return false;
+ }
}
- }
- private static bool IsCPPCLIAssembly (ModuleDefinition module)
- {
- return module.Types.Any (t =>
- t.Namespace == "<CppImplementationDetails>" ||
- t.Namespace == "<CrtImplementationDetails>");
+ private static bool IsCPPCLIAssembly (ModuleDefinition module)
+ {
+ return module.Types.Any (t =>
+ t.Namespace == "<CppImplementationDetails>" ||
+ t.Namespace == "<CrtImplementationDetails>");
+ }
}
-}
+} \ No newline at end of file