Skip to main content
Version: 0.3.x (0.3.0)

Interface IValueObjectProtoProfile

Namespace: AdCodicem.ValueObjects.ProtobufNet
Assembly: AdCodicem.ValueObjects.ProtobufNet.dll

Fixes, for a closed , whether reads skip validation and which of protobuf-net's inbuilt serializers carries the value.

public interface IValueObjectProtoProfile

Remarks​

protobuf-net creates a serializer named by its type with its parameterless constructor, and keeps one per type for the whole process, so what a serializer does is fixed by its type arguments rather than by arguments to a constructor. holds the six combinations; a profile of your own implements this interface.

Properties​

CompatibilityLevel​

Gets the level whose inbuilt serializer of the underlying type the value goes through, which decides how a , a , a and a are written.

public static abstract CompatibilityLevel CompatibilityLevel { get; }

Property Value​

CompatibilityLevel

Trusted​

Gets whether a read goes through CreateUnchecked, for bytes the application alone wrote, rather than through TryCreate.

public static abstract bool Trusted { get; }

Property Value​

bool