Ejemplo n.º 1
0
            public void Initialize(ConnectionsControl owner, PackedMemorySnapshot snapshot, int arrayIndex)
            {
                m_Owner         = owner;
                m_ManagedObject = new RichManagedObject(snapshot, arrayIndex);

                displayName = m_ManagedObject.type.name;
                address     = m_ManagedObject.address;
                m_Value     = m_ManagedObject.nativeObject.isValid ? m_ManagedObject.nativeObject.name : "";
                m_Tooltip   = PackedManagedTypeUtility.GetInheritanceAsString(snapshot, m_ManagedObject.type.packed.managedTypesArrayIndex);
            }
Ejemplo n.º 2
0
        public void Initialize()
        {
            if (m_IsInitialized)
            {
                return;
            }
            m_IsInitialized = true;

            OnInitialize();

            var text = string.Format("{0} {1} = {2}\n\n{3}",
                                     displayType,
                                     displayName,
                                     displayValue,
                                     PackedManagedTypeUtility.GetInheritanceAsString(m_Snapshot, type.managedTypesArrayIndex));

            this.tooltip = text.Trim();
        }