System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (8)
343if (reader.IsStartElement(trustConstants.Elements.KeySize, trustConstants.NamespaceURI))
765requestSerializer.WriteXmlElement(writer, trustConstants.Elements.KeySize, rst.KeySizeInBits, rst, context);
1013if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeySize))
1015writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.NamespaceURI, Convert.ToString(((int)elementValue), CultureInfo.InvariantCulture));
1447if (reader.IsStartElement(trustConstants.Elements.KeySize, trustConstants.NamespaceURI))
1752responseSerializer.WriteXmlElement(writer, trustConstants.Elements.KeySize, rstr.KeySizeInBits, rstr, context);
1881if (StringComparer.Ordinal.Equals(elementName, trustConstants.Elements.KeySize))
1883writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.NamespaceURI, Convert.ToString((int)elementValue, CultureInfo.InvariantCulture));