internal void IncrementDepth()
 {
     if (m_depth++ >= m_maxDepth)
     {
         throw new InvalidOperationException(TemplateStrings.MaxObjectDepthExceeded());
     }
 }