public Object GetMapKeyFieldValue(Object mapElement)
{
if (this.mapKeyFieldName != null)
{
ClassDescriptor cd = ClassDescriptor.GetClassDescriptor(mapElement);
if (cd != null)
{
FieldDescriptor fd = cd.GetFieldDescriptorByFieldName(mapKeyFieldName);
return fd.field.GetValue(mapElement);
}
}
return null;
}