Ejemplo n.º 1
0
        internal void RemoveConstCast()
        {
            ConstCastHolder ch = m__parent as ConstCastHolder;

            if (m_ptr != IntPtr.Zero && ch != null)
            {
                m__parent = ch.m_oldparent;
                m_ptr     = IntPtr.Zero;
            }
        }
Ejemplo n.º 2
0
 internal void ApplyConstCast()
 {
     if (m_ptr == IntPtr.Zero && m__parent != null)
     {
         IntPtr          const_ptr_this = ConstPointer();
         ConstCastHolder ch             = new ConstCastHolder(this, m__parent);
         m__parent = ch;
         m_ptr     = const_ptr_this;
     }
 }
Ejemplo n.º 3
0
 internal void ApplyConstCast()
 {
   if (m_ptr == IntPtr.Zero && m__parent!=null)
   {
     IntPtr pConstThis = ConstPointer();
     ConstCastHolder ch = new ConstCastHolder(this, m__parent);
     m__parent = ch;
     m_ptr = pConstThis;
   }
 }