How does a struct instance's virtual method get located using its type object in heap?
问题 below is a code example from a book to show when a value type will be boxed: internal struct Point { private readonly Int32 m_x, m_y; public Point(Int32 x, Int32 y) { m_x = x; m_y = y; } //Override ToString method inherited from System.ValueType public override string ToString() { return String.Format("({0}, {1})", m_x.ToString(), m_y.ToString()); } } class Program { static void Main(string[] args) { Point p1 = new Point(10, 10); p1.ToString(); } } and the author says: In the call to ToString