Class CStructMappedAttribute
- Namespace
- CStructSharp
- Assembly
- CStructSharp.dll
Asks the CStructSharp source generator to implement ICStructMapped<TSelf> for a
partial class: ReadFrom and WriteTo assign the class's public members by name, with the
conversions Get<T>(string) applies, and a module initializer registers the
type with MappedTypes.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
public sealed class CStructMappedAttribute : Attribute
- Inheritance
-
CStructMappedAttribute
- Inherited Members
Constructors
CStructMappedAttribute()
Marks the class for mapper generation.
public CStructMappedAttribute()
Properties
Layout
Gets or sets the layout root the class maps, when the generator should check members against it.
public string? Layout { get; set; }