ISerializationContextExtensions

Name Value
Assembly Catel.Core
Namespace Catel.Runtime.Serialization
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class ISerializationContextExtensions

Extension methods for the serialization context.

Methods

FindParentType(ISerializationContext serializationContext, Func predicate, int maxLevels)

Tries to find the parent type in the object graph.

Parameters

Name Description
serializationContext The serialization context.
predicate The predicate.
maxLevels The maximum number of levels to check. If-1, will check all up to the root.

Returns

The type ornull of the type is not found.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion