Table of Contents

Property RequiredMembers

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

RequiredMembers

Gets whether record fields without a schema default are required members (#15), so the compiler checks that new sets them. They are only on targets that support them, .NET 7 and later, and with C# 11 or later (LanguageVersion); elsewhere they stay plain properties, so the code compiles for every target. Readers create values through a constructor that sets the members. Defaults to false.

public bool RequiredMembers { get; init; }

Property Value

bool