3 writes to XmlLang
System.ServiceModel.Primitives (3)
System\ServiceModel\FaultReasonText.cs (3)
17
XmlLang
= CultureInfo.CurrentCulture.Name;
23
XmlLang
= xmlLang ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(xmlLang)));
34
XmlLang
= cultureInfo.Name;
7 references to XmlLang
System.ServiceModel.Primitives (6)
System\ServiceModel\Channels\MessageFault.cs (3)
339
writer.WriteAttributeString("xml", "lang", XmlUtil.XmlNs, text.
XmlLang
);
455
if (translation.
XmlLang
.Length > 0)
457
writer.WriteAttributeString("xml", "lang", XmlUtil.XmlNs, translation.
XmlLang
);
System\ServiceModel\FaultException.cs (1)
346
array[i].xmlLang = translations[i].
XmlLang
;
System\ServiceModel\FaultReason.cs (1)
130
if (Translations[i].
XmlLang
== localLang)
System\ServiceModel\FaultReasonText.cs (1)
44
return
XmlLang
== cultureInfo.Name;
System.ServiceModel.Primitives.Tests (1)
ServiceModel\FaultExceptionTest.cs (1)
84
Assert.Equal(CultureInfo.CurrentCulture.Name, faultReasonText.
XmlLang
);