public void CheckPropertyName(string propertyName)
{
// Verify that the property name matches a real,
// public, instance property on this object.
if( TypeDescriptor.GetProperties(this)[propertyName] == null )
{
string msg = "Invalid property name: " + propertyName;
if( _throwException ) throw new Exception( msg );
Debug.Fail( msg );
}
}