int GetNumberOfRows (int rid) { IMetadataTable t = m_root.Streams.TablesHeap [rid]; if (t == null || t.Rows == null) return 0; return t.Rows.Count; }