mirror of
https://github.com/AssetRipper/ILSpy.git
synced 2026-11-21 07:09:27 -10:00
34 lines
744 B
C#
34 lines
744 B
C#
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(')');
|
|
}
|
|
}
|
|
}
|