internal static void CheckIfTypeIsReference(DataContract dataContract) { if (dataContract.IsReference) { throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.JsonUnsupportedForIsReference, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.IsReference)); } }