Skip to the content.

< Back


MyReadonlyStruct

Namespace: MyClassLib

A readonly struct sample.

public readonly struct MyReadonlyStruct

Inheritance ObjectValueTypeMyReadonlyStruct
Attributes IsReadOnlyAttribute

Properties

Value

The wrapped value.

public int Value { get; }

Property Value

Int32
The integer value.

Constructors

MyReadonlyStruct(Int32)

Initializes a new MyReadonlyStruct.

public MyReadonlyStruct(int value)

Parameters

value Int32
The wrapped value.


< Back