Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Text.​Json.​Serialization.​Metadata.​JsonTypeInfoResolver
Assembly: System.Text.Json
Inheritance: object → JsonTypeInfoResolver
Contains utilities and combinators acting on <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> .
Methods
public static
IJsonTypeInfoResolver
Combine​(ReadOnlySpan<​IJsonTypeInfoResolver> resolvers)
Combines multiple <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> sources into one.
Returns A <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> combining results from <paramref name="resolvers" /> .
resolvers
Sequence of contract resolvers to be queried for metadata.
public static
IJsonTypeInfoResolver
Combine​(IJsonTypeInfoResolver[] resolvers)
Combines multiple <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> sources into one.
Returns A <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> combining results from <paramref name="resolvers" /> .
resolvers
Sequence of contract resolvers to be queried for metadata.
public static
IJsonTypeInfoResolver
WithAddedModifier​(IJsonTypeInfoResolver resolver,
Action<​JsonTypeInfo> modifier)
Creates a resolver and applies modifications to the metadata generated by the source <paramref name="resolver" /> .
Returns A new <see cref="T:System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver" /> instance with modifications applied.
resolver
The source resolver generating <see cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo" /> metadata.
modifier
The delegate that modifies non- <see langword="null" /> <see cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo" /> results.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object