private string GetContentPropertyNameForType (Type t)
{
object [] o = t.GetCustomAttributes (typeof (ContentPropertyAttribute), false);
if (o.Length == 0)
return null;
ContentPropertyAttribute cpa = (ContentPropertyAttribute ) o [0];
return cpa.Name;
}