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.
34 lines
761 B
34 lines
761 B
#nullable enable |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Text; |
|
|
|
using ICSharpCode.Decompiler.TypeSystem; |
|
|
|
namespace ICSharpCode.Decompiler.IL |
|
{ |
|
partial class ExpressionTreeCast |
|
{ |
|
public bool IsChecked { get; set; } |
|
|
|
public ExpressionTreeCast(IType type, ILInstruction argument, bool isChecked) |
|
: base(OpCode.ExpressionTreeCast, argument) |
|
{ |
|
this.Type = type; |
|
this.IsChecked = isChecked; |
|
} |
|
|
|
public override void WriteTo(ITextOutput output, ILAstWritingOptions options) |
|
{ |
|
WriteILRange(output, options); |
|
output.Write(OpCode); |
|
if (IsChecked) |
|
output.Write(".checked"); |
|
output.Write(' '); |
|
type.WriteTo(output); |
|
output.Write('('); |
|
Argument.WriteTo(output, options); |
|
output.Write(')'); |
|
} |
|
} |
|
}
|
|
|