private Exception CreateInvalidPrimitiveTypeException(Type type) { return new InvalidDataContractException(SR.Format(SR.InvalidPrimitiveType, DataContract.GetClrTypeFullName(type))); }