The Labs \ Source Viewer \ SSCLI \ System.CodeDom.Compiler \ ICodeCompiler

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ICodeCompiler.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.CodeDom.Compiler
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System.IO;
  20.     using System.Security.Permissions;
  21.    
  22.     /// <devdoc>
  23.     /// <para>
  24.     /// Provides a
  25.     /// code compilation
  26.     /// interface.
  27.     /// </para>
  28.     /// </devdoc>
  29.     public interface ICodeCompiler
  30.     {
  31.        
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Creates an assembly based on options, with the information from the compile units
  35.         /// </para>
  36.         /// </devdoc>
  37.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  38.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  39.         CompilerResults CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit compilationUnit);
  40.        
  41.         /// <devdoc>
  42.         /// <para>
  43.         /// Creates an assembly based on options, with the contents of
  44.         /// fileName.
  45.         /// </para>
  46.         /// </devdoc>
  47.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  48.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  49.         CompilerResults CompileAssemblyFromFile(CompilerParameters options, string fileName);
  50.        
  51.         /// <devdoc>
  52.         /// <para>
  53.         /// Creates an assembly based on options, with the information from
  54.         /// source.
  55.         /// </para>
  56.         /// </devdoc>
  57.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  58.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  59.         CompilerResults CompileAssemblyFromSource(CompilerParameters options, string source);
  60.        
  61.         /// <devdoc>
  62.         /// <para>
  63.         /// Compiles an assembly based on the specified options and
  64.         /// information.
  65.         /// </para>
  66.         /// </devdoc>
  67.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  68.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  69.         CompilerResults CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] compilationUnits);
  70.        
  71.         /// <devdoc>
  72.         /// <para>
  73.         /// Compiles
  74.         /// an
  75.         /// assembly based on the specified options and contents of the specified
  76.         /// filenames.
  77.         /// </para>
  78.         /// </devdoc>
  79.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  80.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  81.         CompilerResults CompileAssemblyFromFileBatch(CompilerParameters options, string[] fileNames);
  82.        
  83.         /// <devdoc>
  84.         /// <para>
  85.         /// Compiles an assembly based on the specified options and information from the specified
  86.         /// sources.
  87.         /// </para>
  88.         /// </devdoc>
  89.         [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
  90.         [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
  91.         CompilerResults CompileAssemblyFromSourceBatch(CompilerParameters options, string[] sources);
  92.        
  93.     }
  94. }

Developer Fusion