home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_assemblyexceptioninfo_cs________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-06-26  |  1014 b   |  44 lines

  1. /**
  2.  * Assembly-loading Exception information.
  3.  *
  4.  * @author  Jonathan Pryor
  5.  */
  6.  
  7. namespace ADepends
  8.   {
  9.   using System;
  10.   using System.Collections;
  11.   using System.Reflection;
  12.  
  13.   /**
  14.    * If an exception was thrown trying to load an AssemblyName, the 
  15.    * IAssemblyInfo object returned for an Assembly Name is of this type.
  16.    */
  17.   internal class AssemblyExceptionInfo : IAssemblyInfo
  18.     {
  19.     private string m_name;
  20.     private Exception m_excep;
  21.  
  22.     public AssemblyExceptionInfo (String name, System.Exception e)
  23.       {m_name = name;
  24.       m_excep = e;}
  25.  
  26.     public AssemblyRef GetAssembly ()
  27.       {return null;}
  28.  
  29.     public Exception Error
  30.       {get {return m_excep;}}
  31.  
  32.     public String Name
  33.       {get {return m_name;}}
  34.  
  35.     public ICollection ReferencedAssemblies
  36.       {get {return new AssemblyName[0];}}
  37.  
  38.     public ICollection ReferencedModules
  39.       {get {return new ModuleInfo[0];}}
  40.  
  41.     } /* class AssemblyExceptionInfo */
  42.   } /* namespace ADepends */
  43.  
  44.