Skip to content

Commit 5ebfdd9

Browse files
committed
Tidy up documentation
1 parent d4b0321 commit 5ebfdd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Tests/ClientConcepts/HighLevel/Inference/FieldInference.doc.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,17 +412,17 @@ class Precedence
412412
{
413413
[Text(Name = "renamedIgnoresNest")]
414414
[PropertyName("renamedIgnoresJsonProperty"),JsonProperty("renamedIgnoresJsonProperty")]
415-
public string RenamedOnConnectionSettings { get; set; } //<1> Even though this property has a NEST property mapping _and_ a `JsonProperty` attribute, We are going to provide a hard rename for it on ConnectionSettings later that should win.
415+
public string RenamedOnConnectionSettings { get; set; } //<1> Even though this property has various attributes applied we provide an override on ConnectionSettings later that takes precedence.
416416

417417
[Text(Name = "nestAtt")]
418418
[PropertyName("nestProp"),JsonProperty("jsonProp")]
419-
public string NestAttribute { get; set; } //<2> This property has both a NEST attribute and property and a `JsonProperty`, NEST should win.
419+
public string NestAttribute { get; set; } //<2> Has a `TextAttribute`, `PropertyNameAttribute` and a `JsonPropertyAttribute` - the `TextAttribute` takes precedence.
420420

421421
[PropertyName("nestProp"),JsonProperty("jsonProp")]
422-
public string NestProperty { get; set; } //<3> This property has both a NEST property and a `JsonProperty`, NEST should win.
422+
public string NestProperty { get; set; } //<3> Has both a `PropertyNameAttribute` and a `JsonPropertyAttribute` - the `TextAttribute` takes precedence.
423423

424424
[JsonProperty("jsonProp")]
425-
public string JsonProperty { get; set; } //<4> We should take the json property into account by itself
425+
public string JsonProperty { get; set; } //<4> `JsonPropertyAttribute` takes precedence.
426426

427427
[PropertyName("dontaskme"),JsonProperty("dontaskme")]
428428
public string AskSerializer { get; set; } //<5> This property we are going to hard code in our custom serializer to resolve to ask.

0 commit comments

Comments
 (0)