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.
38 lines
790 B
38 lines
790 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
|
|
namespace ICSharpCode.Decompiler.IL |
|
{ |
|
partial class LockInstruction |
|
{ |
|
public override void WriteTo(ITextOutput output) |
|
{ |
|
output.Write("lock ("); |
|
OnExpression.WriteTo(output); |
|
output.WriteLine(") {"); |
|
output.Indent(); |
|
Body.WriteTo(output); |
|
output.Unindent(); |
|
output.WriteLine(); |
|
output.Write("}"); |
|
} |
|
} |
|
|
|
partial class UsingInstruction |
|
{ |
|
public override void WriteTo(ITextOutput output, ILAstWritingOptions options) |
|
{ |
|
output.Write("using ("); |
|
ResourceExpression.WriteTo(output); |
|
output.WriteLine(") {"); |
|
output.Indent(); |
|
Body.WriteTo(output); |
|
output.Unindent(); |
|
output.WriteLine(); |
|
output.Write("}"); |
|
} |
|
} |
|
}
|
|
|