PropertiesToString() static private method

static private PropertiesToString ( object obj, string format ) : string
obj object
format string
return string
Ejemplo n.º 1
0
        public override string ToString()
        {
            var sb = new StringBuilder("IMAGE_SECTION_HEADER\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-10}:\t{1,10:X}\n"));
            return(sb.ToString());
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var sb = new StringBuilder("IMAGE_IMPORT_DESCRIPTOR\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-20}:\t{1,10:X}\n"));
            return(sb.ToString());
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Creates a string representation of all
        ///     properties of the object.
        /// </summary>
        /// <returns>The imported function as a string.</returns>
        public override string ToString()
        {
            var sb = new StringBuilder("ImportFunction\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-20}:\t{1,10:X}\n"));
            return(sb.ToString());
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Creates a string representation of the objects
        ///     properties.
        /// </summary>
        /// <returns>PE Header properties as a string.</returns>
        public override string ToString()
        {
            var sb = new StringBuilder("PE HEADER:\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-15}:\t{1,10:X}\n"));
            return(sb.ToString());
        }
Ejemplo n.º 5
0

        
Ejemplo n.º 6
0
        public override string ToString()
        {
            var sb = new StringBuilder("WIN_CERTIFICATE\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-10}:\t{1,10:X}\n"));

            return(sb.ToString());
        }
Ejemplo n.º 7
0
        public override string ToString()
        {
            var sb = new StringBuilder("IMAGE_EXPORT_DIRECTORY\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-15}:\t{1,10:X}\n"));

            return(sb.ToString());
        }
Ejemplo n.º 8
0
        public override string ToString()
        {
            var sb = new StringBuilder("IMAGE_NT_HEADERS\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-10}:\t{1,10:X}\n"));
            sb.Append(FileHeader.ToString());
            sb.Append(OptionalHeader.ToString());

            return(sb.ToString());
        }
Ejemplo n.º 9
0
        public override string ToString()
        {
            var sb = new StringBuilder("IMAGE_OPTIONAL_HEADER\n");

            sb.Append(Utility.PropertiesToString(this, "{0,-15}:\t{1,10:X}\n"));
            foreach (var dd in DataDirectory)
            {
                sb.Append(dd.ToString());
            }
            return(sb.ToString());
        }
Ejemplo n.º 10
0
 public override string ToString()
 {
     var sb = new StringBuilder("UNWIND_INFO\n");
     sb.Append(Utility.PropertiesToString(this, "{0,-20}:\t{1,10:X}\n"));
     sb.Append("UnwindCodes\n");
     foreach(var uw in UnwindCode)
     {
         sb.Append(uw.ToString());
         sb.Append("\n");
     }
     return sb.ToString();
 }