Table of Contents

Class CStructMemberAttribute

Namespace
CStructSharp
Assembly
CStructSharp.dll

Names the layout member a property or field of a [CStructMapped] class maps to, when the C# name differs.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public sealed class CStructMemberAttribute : Attribute
Inheritance
CStructMemberAttribute
Inherited Members

Constructors

CStructMemberAttribute(string)

Maps the member to name.

public CStructMemberAttribute(string name)

Parameters

name string

The layout member name, spelled as the layout declares it.

Properties

Name

Gets the layout member name.

public string Name { get; }

Property Value

string