From 3bfc8223a187265cd67e8cb9b309aab46b65f139 Mon Sep 17 00:00:00 2001 From: Discosultan Date: Tue, 24 May 2016 17:29:03 +0300 Subject: [PATCH] Unify the usage of tags for true/false values in XML docs --- Src/Newtonsoft.Json/Bson/BsonReader.cs | 2 +- Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs | 2 +- Src/Newtonsoft.Json/JsonReader.cs | 2 +- Src/Newtonsoft.Json/JsonTextReader.cs | 2 +- Src/Newtonsoft.Json/JsonValidatingReader.cs | 2 +- Src/Newtonsoft.Json/Linq/JObject.cs | 6 +++--- Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs | 12 +++++------- Src/Newtonsoft.Json/Linq/JToken.cs | 2 +- Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs | 2 +- Src/Newtonsoft.Json/Linq/JTokenReader.cs | 2 +- Src/Newtonsoft.Json/Linq/JValue.cs | 4 ++-- 11 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Src/Newtonsoft.Json/Bson/BsonReader.cs b/Src/Newtonsoft.Json/Bson/BsonReader.cs index 0ea895a6..0c8559ed 100644 --- a/Src/Newtonsoft.Json/Bson/BsonReader.cs +++ b/Src/Newtonsoft.Json/Bson/BsonReader.cs @@ -178,7 +178,7 @@ namespace Newtonsoft.Json.Bson /// Reads the next JSON token from the stream. /// /// - /// true if the next token was read successfully; false if there are no more tokens to read. + /// true if the next token was read successfully; false if there are no more tokens to read. /// public override bool Read() { diff --git a/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs b/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs index 034ec5e8..d4dd7903 100644 --- a/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs +++ b/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs @@ -2004,7 +2004,7 @@ namespace Newtonsoft.Json.Converters /// /// Attribute name to test. /// The attribute name prefix if it has one, otherwise an empty string. - /// True if attribute name is for a namespace attribute, otherwise false. + /// true if attribute name is for a namespace attribute, otherwise false. private bool IsNamespaceAttribute(string attributeName, out string prefix) { if (attributeName.StartsWith("xmlns", StringComparison.Ordinal)) diff --git a/Src/Newtonsoft.Json/JsonReader.cs b/Src/Newtonsoft.Json/JsonReader.cs index bae24cff..4df922cb 100644 --- a/Src/Newtonsoft.Json/JsonReader.cs +++ b/Src/Newtonsoft.Json/JsonReader.cs @@ -407,7 +407,7 @@ namespace Newtonsoft.Json /// /// Reads the next JSON token from the stream. /// - /// true if the next token was read successfully; false if there are no more tokens to read. + /// true if the next token was read successfully; false if there are no more tokens to read. public abstract bool Read(); /// diff --git a/Src/Newtonsoft.Json/JsonTextReader.cs b/Src/Newtonsoft.Json/JsonTextReader.cs index 0a8600af..cf2ca06b 100644 --- a/Src/Newtonsoft.Json/JsonTextReader.cs +++ b/Src/Newtonsoft.Json/JsonTextReader.cs @@ -362,7 +362,7 @@ namespace Newtonsoft.Json /// Reads the next JSON token from the stream. /// /// - /// true if the next token was read successfully; false if there are no more tokens to read. + /// true if the next token was read successfully; false if there are no more tokens to read. /// public override bool Read() { diff --git a/Src/Newtonsoft.Json/JsonValidatingReader.cs b/Src/Newtonsoft.Json/JsonValidatingReader.cs index 260791b8..6e5d75a1 100644 --- a/Src/Newtonsoft.Json/JsonValidatingReader.cs +++ b/Src/Newtonsoft.Json/JsonValidatingReader.cs @@ -495,7 +495,7 @@ namespace Newtonsoft.Json /// Reads the next JSON token from the stream. /// /// - /// true if the next token was read successfully; false if there are no more tokens to read. + /// true if the next token was read successfully; false if there are no more tokens to read. /// public override bool Read() { diff --git a/Src/Newtonsoft.Json/Linq/JObject.cs b/Src/Newtonsoft.Json/Linq/JObject.cs index ea74795c..45c21403 100644 --- a/Src/Newtonsoft.Json/Linq/JObject.cs +++ b/Src/Newtonsoft.Json/Linq/JObject.cs @@ -528,7 +528,7 @@ namespace Newtonsoft.Json.Linq /// Name of the property. /// The value. /// One of the enumeration values that specifies how the strings will be compared. - /// true if a value was successfully retrieved; otherwise, false. + /// true if a value was successfully retrieved; otherwise, false. public bool TryGetValue(string propertyName, StringComparison comparison, out JToken value) { value = GetValue(propertyName, comparison); @@ -561,7 +561,7 @@ namespace Newtonsoft.Json.Linq /// Removes the property with the specified name. /// /// Name of the property. - /// true if item was successfully removed; otherwise, false. + /// true if item was successfully removed; otherwise, false. public bool Remove(string propertyName) { JProperty property = Property(propertyName); @@ -579,7 +579,7 @@ namespace Newtonsoft.Json.Linq /// /// Name of the property. /// The value. - /// true if a value was successfully retrieved; otherwise, false. + /// true if a value was successfully retrieved; otherwise, false. public bool TryGetValue(string propertyName, out JToken value) { JProperty property = Property(propertyName); diff --git a/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs b/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs index 00eb8575..0b7b34eb 100644 --- a/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs +++ b/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs @@ -52,10 +52,9 @@ namespace Newtonsoft.Json.Linq /// When overridden in a derived class, returns whether resetting an object changes its value. /// /// - /// true if resetting the component changes its value; otherwise, false. + /// true if resetting the component changes its value; otherwise, false. /// - /// The component to test for reset capability. - /// + /// The component to test for reset capability. public override bool CanResetValue(object component) { return false; @@ -102,10 +101,9 @@ namespace Newtonsoft.Json.Linq /// When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. /// /// - /// true if the property should be persisted; otherwise, false. + /// true if the property should be persisted; otherwise, false. /// - /// The component with the property to be examined for persistence. - /// + /// The component with the property to be examined for persistence. public override bool ShouldSerializeValue(object component) { return false; @@ -126,7 +124,7 @@ namespace Newtonsoft.Json.Linq /// When overridden in a derived class, gets a value indicating whether this property is read-only. /// /// - /// true if the property is read-only; otherwise, false. + /// true if the property is read-only; otherwise, false. /// public override bool IsReadOnly { diff --git a/Src/Newtonsoft.Json/Linq/JToken.cs b/Src/Newtonsoft.Json/Linq/JToken.cs index df753af1..8bcbf83d 100644 --- a/Src/Newtonsoft.Json/Linq/JToken.cs +++ b/Src/Newtonsoft.Json/Linq/JToken.cs @@ -152,7 +152,7 @@ namespace Newtonsoft.Json.Linq /// /// The first to compare. /// The second to compare. - /// true if the tokens are equal; otherwise false. + /// true if the tokens are equal; otherwise false. public static bool DeepEquals(JToken t1, JToken t2) { return (t1 == t2 || (t1 != null && t2 != null && t1.DeepEquals(t2))); diff --git a/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs b/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs index fd10537a..33dd3f13 100644 --- a/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs +++ b/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs @@ -38,7 +38,7 @@ namespace Newtonsoft.Json.Linq /// The first object of type to compare. /// The second object of type to compare. /// - /// true if the specified objects are equal; otherwise, false. + /// true if the specified objects are equal; otherwise, false. /// public bool Equals(JToken x, JToken y) { diff --git a/Src/Newtonsoft.Json/Linq/JTokenReader.cs b/Src/Newtonsoft.Json/Linq/JTokenReader.cs index d3595198..0f5c98dc 100644 --- a/Src/Newtonsoft.Json/Linq/JTokenReader.cs +++ b/Src/Newtonsoft.Json/Linq/JTokenReader.cs @@ -68,7 +68,7 @@ namespace Newtonsoft.Json.Linq /// Reads the next JSON token from the stream. /// /// - /// true if the next token was read successfully; false if there are no more tokens to read. + /// true if the next token was read successfully; false if there are no more tokens to read. /// public override bool Read() { diff --git a/Src/Newtonsoft.Json/Linq/JValue.cs b/Src/Newtonsoft.Json/Linq/JValue.cs index 575dbe37..d6d6b30e 100644 --- a/Src/Newtonsoft.Json/Linq/JValue.cs +++ b/Src/Newtonsoft.Json/Linq/JValue.cs @@ -849,7 +849,7 @@ namespace Newtonsoft.Json.Linq /// Indicates whether the current object is equal to another object of the same type. /// /// - /// true if the current object is equal to the parameter; otherwise, false. + /// true if the current object is equal to the parameter; otherwise, false. /// /// An object to compare with this object. public bool Equals(JValue other) @@ -867,7 +867,7 @@ namespace Newtonsoft.Json.Linq /// /// The to compare with the current . /// - /// true if the specified is equal to the current ; otherwise, false. + /// true if the specified is equal to the current ; otherwise, false. /// /// /// The parameter is null.