Stream GetDecompiledStream(CancellationToken token) { var output = new StringBuilderDecompilerOutput(); Decompile(output, token); return(ResourceUtilities.StringToStream(output.ToString())); }
string TypeToString(ITypeDefOrRef type, bool includeNamespace, IHasCustomAttribute typeAttributes = null) { var output = new StringBuilderDecompilerOutput(); TypeToString(output, type, includeNamespace, typeAttributes); return(output.ToString()); }
public DecompileCodeState(object referenceToEdit, MethodSourceStatement?methodSourceStatement) { DecompilationContext = new DecompilationContext { CancellationToken = CancellationToken, }; MainOutput = new MyDecompilerOutput(referenceToEdit, methodSourceStatement); HiddenOutput = new StringBuilderDecompilerOutput(); }
public DecompileCodeState() { DecompilationContext = new DecompilationContext { CancellationToken = CancellationToken, }; MainOutput = new StringBuilderDecompilerOutput(); HiddenOutput = new StringBuilderDecompilerOutput(); }
public override string ToString(CancellationToken token, bool canDecompile) { if (!canDecompile) { return(null); } var output = new StringBuilderDecompilerOutput(); Decompile(output, token); return(output.ToString()); }
string TypeToString(ITypeDefOrRef type, bool includeNamespace, IHasCustomAttribute typeAttributes = null) { var output = new StringBuilderDecompilerOutput(); TypeToString(output, type, includeNamespace, typeAttributes); return output.ToString(); }
public EditMethodDecompileCodeState(object referenceToEdit, MethodSourceStatement?methodSourceStatement) { MainOutput = new ReferenceDecompilerOutput(referenceToEdit, methodSourceStatement); HiddenOutput = new StringBuilderDecompilerOutput(); }
public AddMembersDecompileCodeState(object referenceToEdit) { MainOutput = new ReferenceDecompilerOutput(referenceToEdit, null); HiddenOutput = new StringBuilderDecompilerOutput(); }
public EditMethodDecompileCodeState(object referenceToEdit, MethodSourceStatement? methodSourceStatement) { MainOutput = new ReferenceDecompilerOutput(referenceToEdit, methodSourceStatement); HiddenOutput = new StringBuilderDecompilerOutput(); }
Stream GetDecompiledStream(CancellationToken token) { var output = new StringBuilderDecompilerOutput(); Decompile(output, token); return ResourceUtilities.StringToStream(output.ToString()); }
public override string ToString(CancellationToken token, bool canDecompile) { if (!canDecompile) return null; var output = new StringBuilderDecompilerOutput(); Decompile(output, token); return output.ToString(); }