Table of Contents

Class NumberedTypeGeneratorAttribute

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

This attribute marks a type which should be cloned by the source generator with a changed constant field value. This type is mainly used by HybridString16 and related types.

[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
public class NumberedTypeGeneratorAttribute : Attribute
Inheritance
NumberedTypeGeneratorAttribute
Inherited Members

Constructors

NumberedTypeGeneratorAttribute(string, int)

This attribute marks a type which should be cloned by the source generator with a changed constant field value. This type is mainly used by HybridString16 and related types.

public NumberedTypeGeneratorAttribute(string fieldName, int value)

Parameters

fieldName string

The name of the field which should be updated.

value int

The updated value to set to the field.

Properties

FieldName

Gets the name of the field which should be updated.

public string FieldName { get; }

Property Value

string

Value

Gets the updated value to set to the field.

public int Value { get; }

Property Value

int