Esempio n. 1
0
        Stream GetDecompiledStream(CancellationToken token)
        {
            var output = new StringBuilderDecompilerOutput();

            Decompile(output, token);
            return(ResourceUtilities.StringToStream(output.ToString()));
        }
Esempio n. 2
0
        string TypeToString(ITypeDefOrRef type, bool includeNamespace, IHasCustomAttribute typeAttributes = null)
        {
            var output = new StringBuilderDecompilerOutput();

            TypeToString(output, type, includeNamespace, typeAttributes);
            return(output.ToString());
        }
Esempio n. 3
0
 public DecompileCodeState(object referenceToEdit, MethodSourceStatement?methodSourceStatement)
 {
     DecompilationContext = new DecompilationContext {
         CancellationToken = CancellationToken,
     };
     MainOutput   = new MyDecompilerOutput(referenceToEdit, methodSourceStatement);
     HiddenOutput = new StringBuilderDecompilerOutput();
 }
Esempio n. 4
0
 public DecompileCodeState()
 {
     DecompilationContext = new DecompilationContext {
         CancellationToken = CancellationToken,
     };
     MainOutput   = new StringBuilderDecompilerOutput();
     HiddenOutput = new StringBuilderDecompilerOutput();
 }
Esempio n. 5
0
        public override string ToString(CancellationToken token, bool canDecompile)
        {
            if (!canDecompile)
            {
                return(null);
            }
            var output = new StringBuilderDecompilerOutput();

            Decompile(output, token);
            return(output.ToString());
        }
Esempio n. 6
0
		string TypeToString(ITypeDefOrRef type, bool includeNamespace, IHasCustomAttribute typeAttributes = null) {
			var output = new StringBuilderDecompilerOutput();
			TypeToString(output, type, includeNamespace, typeAttributes);
			return output.ToString();
		}
Esempio n. 7
0
 public EditMethodDecompileCodeState(object referenceToEdit, MethodSourceStatement?methodSourceStatement)
 {
     MainOutput   = new ReferenceDecompilerOutput(referenceToEdit, methodSourceStatement);
     HiddenOutput = new StringBuilderDecompilerOutput();
 }
Esempio n. 8
0
 public AddMembersDecompileCodeState(object referenceToEdit)
 {
     MainOutput   = new ReferenceDecompilerOutput(referenceToEdit, null);
     HiddenOutput = new StringBuilderDecompilerOutput();
 }
Esempio n. 9
0
			public EditMethodDecompileCodeState(object referenceToEdit, MethodSourceStatement? methodSourceStatement) {
				MainOutput = new ReferenceDecompilerOutput(referenceToEdit, methodSourceStatement);
				HiddenOutput = new StringBuilderDecompilerOutput();
			}
Esempio n. 10
0
		Stream GetDecompiledStream(CancellationToken token) {
			var output = new StringBuilderDecompilerOutput();
			Decompile(output, token);
			return ResourceUtilities.StringToStream(output.ToString());
		}
Esempio n. 11
0
		public override string ToString(CancellationToken token, bool canDecompile) {
			if (!canDecompile)
				return null;
			var output = new StringBuilderDecompilerOutput();
			Decompile(output, token);
			return output.ToString();
		}