using System . Reflection;
private string GetNameProperty( object AObject)
{
if (AObject == null ) return "" ;
Type vType = AObject . GetType();
PropertyInfo vPropertyInfo = vType . GetProperty( "Name" );
if (vPropertyInfo != null )
return vPropertyInfo . GetValue(AObject, null ) . ToString();
else return "" ;
}