GetVRCount Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestGetVRCount ( )
{
   int lCount = 0;
   lCount = LEADDICOM1.GetVRCount();
   MessageBox.Show("There are " + System.Convert.ToString(lCount) + " VR Items.");
}