private static void baseSerialize <valueType, childType>(XmlSerializer xmlSerializer, childType value) where childType : valueType { TypeSerializer <valueType> .ClassSerialize(xmlSerializer, value); }