Skip to content

Commit 3936e72

Browse files
author
Charles Roddie
committed
readonly props
1 parent 4e0998c commit 3936e72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CSharpMath.Editor/MathListIndex.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public enum MathListSubIndexType : byte {
3939
public class MathListIndex {
4040

4141
///<summary>The index of the associated atom.</summary>
42-
public int AtomIndex { get; set; }
42+
public int AtomIndex { get; }
4343

44-
public (MathListSubIndexType SubIndexType, MathListIndex SubIndex)? SubIndexInfo;
44+
public readonly (MathListSubIndexType SubIndexType, MathListIndex SubIndex)? SubIndexInfo;
4545

4646
/// <summary>Factory function to create a `MathListIndex` with no subindexes.</summary>
4747
/// <param name="index">The index of the atom that the `MathListIndex` points at.</param>

0 commit comments

Comments
 (0)