DecompilationOptions.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy of this
  4. // software and associated documentation files (the "Software"), to deal in the Software
  5. // without restriction, including without limitation the rights to use, copy, modify, merge,
  6. // publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
  7. // to whom the Software is furnished to do so, subject to the following conditions:
  8. //
  9. // The above copyright notice and this permission notice shall be included in all copies or
  10. // substantial portions of the Software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  13. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  14. // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
  15. // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  16. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  17. // DEALINGS IN THE SOFTWARE.
  18. using System;
  19. using System.Threading;
  20. using ICSharpCode.Decompiler;
  21. //using ICSharpCode.ILSpy.Options;
  22. namespace ICSharpCode.ILSpy
  23. {
  24. /// <summary>
  25. /// Options passed to the decompiler.
  26. /// </summary>
  27. public class DecompilationOptions
  28. {
  29. /// <summary>
  30. /// Gets whether a full decompilation (all members recursively) is desired.
  31. /// If this option is false, language bindings are allowed to show the only headers of the decompiled element's children.
  32. /// </summary>
  33. public bool FullDecompilation { get; set; }
  34. /// <summary>
  35. /// Gets/Sets the directory into which the project is saved.
  36. /// </summary>
  37. public string SaveAsProjectDirectory { get; set; }
  38. /// <summary>
  39. /// Gets the cancellation token that is used to abort the decompiler.
  40. /// </summary>
  41. /// <remarks>
  42. /// Decompilers should regularly call <c>options.CancellationToken.ThrowIfCancellationRequested();</c>
  43. /// to allow for cooperative cancellation of the decompilation task.
  44. /// </remarks>
  45. public CancellationToken CancellationToken { get; set; }
  46. /// <summary>
  47. /// Gets the settings for the decompiler.
  48. /// </summary>
  49. public DecompilerSettings DecompilerSettings { get; set; }
  50. /// <summary>
  51. /// Gets/sets an optional state of a decompiler text view.
  52. /// </summary>
  53. /// <remarks>
  54. /// This state is used to restore test view's state when decompilation is started by Go Back/Forward action.
  55. /// </remarks>
  56. //public TextView.DecompilerTextViewState TextViewState { get; set; }
  57. public AssemblyList assenmlyList{ get; set; }
  58. public String IncludedClassName{ get; set;}
  59. // public DecompilationOptions()
  60. // {
  61. // this.DecompilerSettings = DecompilerSettingsPanel.CurrentDecompilerSettings;
  62. // }
  63. }
  64. }