Example #1
0
        void ExportManagedStaticFields(string filePath)
        {
            var sb   = new System.Text.StringBuilder(1024 * 16);
            var objs = snapshot.managedStaticFields;

            sb.AppendFormat("\"{1}\"{0}\"{2}\"{0}\"{3}\"\n",
                            m_Delimiter,
                            "C# Class Type",
                            "C# Field Type",
                            "C# Field Type Assembly");

            for (var n = 0; n < objs.Length; ++n)
            {
                var obj = new RichStaticField(snapshot, objs[n].staticFieldsArrayIndex);
                sb.AppendFormat("\"{1}\"{0}\"{2}\"{0}\"{3}\"\n",
                                m_Delimiter,
                                obj.classType.name,
                                obj.fieldType.name,
                                obj.fieldType.assemblyName);
            }

            System.IO.File.WriteAllText(filePath, sb.ToString(), System.Text.Encoding.UTF8);
        }
Example #2
0
 public GotoCommand(RichStaticField value)
     : this()
 {
     toStaticField = value;
 }
Example #3
0
 public ObjectProxy(PackedMemorySnapshot snp, PackedManagedStaticField packed)
 {
     snapshot    = snp;
     staticField = new RichStaticField(snp, packed.staticFieldsArrayIndex);
 }