25 references to WritePrimitiveMethodRequirement
System.Private.Xml (25)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (25)
387WritePrimitive(WritePrimitiveMethodRequirement.WriteElementString, name, ns!, element.Default, o!, element.Mapping, false); 410WritePrimitiveMethodRequirement suffixNullable = mapping.IsSoap ? WritePrimitiveMethodRequirement.Encoded : WritePrimitiveMethodRequirement.None; 411WritePrimitiveMethodRequirement suffixRaw = mapping.TypeDesc!.XmlEncodingNotRequired ? WritePrimitiveMethodRequirement.Raw : WritePrimitiveMethodRequirement.None; 413? WritePrimitiveMethodRequirement.WriteNullableStringLiteral | suffixNullable | suffixRaw 414: WritePrimitiveMethodRequirement.WriteElementString | suffixRaw, 889WritePrimitive(WritePrimitiveMethodRequirement.WriteAttribute, attribute.Name, ns, attribute.Default, memberValue, attribute.Mapping!, false); 926private void WritePrimitive(WritePrimitiveMethodRequirement method, string name, string? ns, object? defaultValue, object o, TypeMapping mapping, bool writeXsiType) 977if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteElementString)) 979if (hasRequirement(method, WritePrimitiveMethodRequirement.Raw)) 989else if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteNullableStringLiteral)) 991if (hasRequirement(method, WritePrimitiveMethodRequirement.Encoded)) 993if (hasRequirement(method, WritePrimitiveMethodRequirement.Raw)) 1004if (hasRequirement(method, WritePrimitiveMethodRequirement.Raw)) 1014else if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteAttribute)) 1025if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteElementString | WritePrimitiveMethodRequirement.Raw)) 1029else if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteNullableStringLiteral | WritePrimitiveMethodRequirement.Raw)) 1033else if (hasRequirement(method, WritePrimitiveMethodRequirement.WriteAttribute)) 1048private static bool hasRequirement(WritePrimitiveMethodRequirement value, WritePrimitiveMethodRequirement requirement)