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.
27 lines
504 B
27 lines
504 B
using System; |
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
{ |
|
internal class PropertiesAndEvents |
|
{ |
|
public int Value { |
|
get; |
|
private set; |
|
} |
|
|
|
public event EventHandler AutomaticEvent; |
|
|
|
[field: NonSerialized] |
|
public event EventHandler AutomaticEventWithInitializer = (EventHandler)delegate(object sender, EventArgs e) { |
|
}; |
|
|
|
public event EventHandler CustomEvent { |
|
add { |
|
this.AutomaticEvent += value; |
|
} |
|
remove { |
|
this.AutomaticEvent -= value; |
|
} |
|
} |
|
} |
|
}
|
|
|