mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.ComponentModel; |
|
|
|
namespace ICSharpCode.Decompiler |
|
{ |
|
/// <summary> |
|
/// Settings for the decompiler. |
|
/// </summary> |
|
public class DecompilerSettings : INotifyPropertyChanged |
|
{ |
|
bool anonymousMethods = true; |
|
|
|
/// <summary> |
|
/// Decompile anonymous methods/lambdas. |
|
/// </summary> |
|
public bool AnonymousMethods { |
|
get { return anonymousMethods; } |
|
set { |
|
if (anonymousMethods != value) { |
|
anonymousMethods = value; |
|
OnPropertyChanged("AnonymousMethods"); |
|
} |
|
} |
|
} |
|
|
|
bool yieldReturn = true; |
|
|
|
/// <summary> |
|
/// Decompile enumerators. |
|
/// </summary> |
|
public bool YieldReturn { |
|
get { return yieldReturn; } |
|
set { |
|
if (yieldReturn != value) { |
|
yieldReturn = value; |
|
OnPropertyChanged("YieldReturn"); |
|
} |
|
} |
|
} |
|
|
|
public event PropertyChangedEventHandler PropertyChanged; |
|
|
|
protected virtual void OnPropertyChanged(string propertyName) |
|
{ |
|
if (PropertyChanged != null) { |
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
|
} |
|
} |
|
} |
|
}
|
|
|