crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/Assemblies/AssemblyHelper.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 using System;
       
    18 using System.Collections.Generic;
       
    19 using System.Text;
       
    20 using System.Text.RegularExpressions;
       
    21 using System.IO;
       
    22 using System.Runtime.InteropServices;
       
    23 using System.Reflection;
       
    24 
       
    25 namespace SymbianUtils.Assemblies
       
    26 {
       
    27     public static class AssemblyHelper
       
    28     {
       
    29         #region API
       
    30         public static bool IsCLRAssembly( string aFileName )
       
    31         {
       
    32             bool ret = false;
       
    33             //
       
    34             try
       
    35             {
       
    36                 Assembly anAssembly = Assembly.LoadFrom( aFileName );
       
    37                 ret = true;
       
    38             }
       
    39             catch ( BadImageFormatException )
       
    40             {
       
    41             }
       
    42             //
       
    43             return ret;
       
    44         }
       
    45         #endregion
       
    46 
       
    47         #region Properties
       
    48         #endregion
       
    49 
       
    50         #region Internal methods
       
    51         #endregion
       
    52 
       
    53         #region Data members
       
    54         #endregion
       
    55     }
       
    56 }