Skip to content

Commit 883cd73

Browse files
committed
typos & comment improvements
1 parent 1c5e8a7 commit 883cd73

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

YamlDotNet/Core/ParserExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ public static bool Accept<T>(this IParser parser) where T : ParsingEvent
162162
///
163163
/// If the event is not a mapping event or a matching key is not found, returns false.
164164
/// </summary>
165-
/// <param name="selector">The selector to filter the mapping by.</param>
165+
/// <param name="parser">The IParser which will have its current value checked for a matching mapping entry</param>
166+
/// <param name="selector">The selector to filter the mapping by</param>
166167
/// <param name="key">The matching key of the mapping as a Scalar, or null if no matching key found</param>
167168
/// <param name="value">The matching value of the mapping as a ParsingEvent, or null if no matching key found</param>
168169
/// <returns>Returns true if the current event is a mapping entry with a key that matches the selector;

YamlDotNet/Serialization/BufferedDeserialization/TypeDiscriminatingNodeDeserializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace YamlDotNet.Serialization.BufferedDeserialization
1616
/// a dotnet output type for the yaml node. As the node is buffered, the <see cref="ITypeDiscriminator" />s are
1717
/// able to examine the actual values within, and use these when discriminating a type.
1818
/// Once a matching type is found, the TypeDiscriminatingNodeDeserializer uses it's inner deserializers to perform
19-
/// the final deserialization for that type & object.
19+
/// the final deserialization for that type &amp; object.
2020
/// Usually you will want all default <see cref="INodeDeserializer" />s that exist in the outer
2121
/// <see cref="Deserializer" /> to also be used as inner deserializers.
2222
/// </summary>
@@ -95,5 +95,5 @@ public bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, o
9595
value = null;
9696
return false;
9797
}
98-
}
98+
}
9999
}

YamlDotNet/Serialization/DeserializerBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ public DeserializerBuilder WithTypeDiscriminatingNodeDeserializer(
262262
configureTypeDiscriminatingNodeDeserializerOptions(options);
263263
// We use all current NodeDeserializers as the inner deserializers for the TypeDiscriminatingNodeDeserializer,
264264
// so that it can successfully deserialize anything our root deserializer can.
265-
var TypeDiscriminatingNodeDeserializer = new TypeDiscriminatingNodeDeserializer(nodeDeserializerFactories.BuildComponentList(), options.discriminators, maxDepth, maxLength);
265+
var typeDiscriminatingNodeDeserializer = new TypeDiscriminatingNodeDeserializer(nodeDeserializerFactories.BuildComponentList(), options.discriminators, maxDepth, maxLength);
266266

267267
// We register this before the DictionaryNodeDeserializer, as otherwise it will take precedence
268268
// and cases where BaseType = object will not reach the TypeDiscriminatingNodeDeserializer
269-
return WithNodeDeserializer(TypeDiscriminatingNodeDeserializer, s => s.Before<DictionaryNodeDeserializer>());
269+
return WithNodeDeserializer(typeDiscriminatingNodeDeserializer, s => s.Before<DictionaryNodeDeserializer>());
270270
}
271271

272272
/// <summary>

YamlDotNet/Serialization/StaticDeserializerBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ public StaticDeserializerBuilder WithTypeDiscriminatingNodeDeserializer(
221221
configureTypeDiscriminatingNodeDeserializerOptions(options);
222222
// We use all current NodeDeserializers as the inner deserializers for the TypeDiscriminatingNodeDeserializer,
223223
// so that it can successfully deserialize anything our root deserializer can.
224-
var TypeDiscriminatingNodeDeserializer = new TypeDiscriminatingNodeDeserializer(nodeDeserializerFactories.BuildComponentList(), options.discriminators, maxDepth, maxLength);
224+
var typeDiscriminatingNodeDeserializer = new TypeDiscriminatingNodeDeserializer(nodeDeserializerFactories.BuildComponentList(), options.discriminators, maxDepth, maxLength);
225225

226226
// We register this before the DictionaryNodeDeserializer, as otherwise it will take precedence
227227
// and cases where BaseType = object will not reach the TypeDiscriminatingNodeDeserializer
228-
return WithNodeDeserializer(TypeDiscriminatingNodeDeserializer, s => s.Before<DictionaryNodeDeserializer>());
228+
return WithNodeDeserializer(typeDiscriminatingNodeDeserializer, s => s.Before<DictionaryNodeDeserializer>());
229229
}
230230

231231
/// <summary>

0 commit comments

Comments
 (0)