SharpDisasm/Translators/Translator.cs
/// <summary>
/// Translate a list of instructions separated by <see cref="Environment.NewLine"/>.
/// </summary>
/// <param name="insns">The instructions to translate</param>
/// <returns>Each of the translated instructions separated by <see cref="Environment.NewLine"/></returns>
Translate a list of instructions separated by .
Translate a list of instructions separated by .
public virtual string Translate(IEnumerable<Instruction> insns)
        {
            Content.Length = 0;
            bool first = true;
            foreach (var insn in insns)
            {
                if (first)
                    first = false;
                else
                    Content.Append(Environment.NewLine);
                if (IncludeAddress)
                    WriteAddress(insn);
                if (IncludeBinary)
                    WriteBinary(insn);
                TranslateInstruction(insn);
                TrimContent();
            }
            var result = Content.ToString();
            Content.Length = 0;
            return result;
        }
public virtual string Translate ( IEnumerable < Instruction > insns ) { Content . Length = 0 ; bool first = true ; foreach ( var insn in insns ) { if ( first ) first = false ; else Content . Append ( Environment . NewLine ) ; if ( IncludeAddress ) WriteAddress ( insn ) ; if ( IncludeBinary ) WriteBinary ( insn ) ; TranslateInstruction ( insn ) ; TrimContent ( ) ; } var result = Content . ToString ( ) ; Content . Length = 0 ; return result ; }
Translate a list of instructions separated by .
Translate a list of instructions separated by .
Each of the translated instructions separated by
Each of the translated instructions separated by
insns
IEnumerable<Instruction>
The instructions to translate
The instructions to translate