File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ public abstract class Persistent : SessionBound,
42
42
/// </summary>
43
43
public abstract TypeInfo TypeInfo { get ; }
44
44
45
+ private FieldInfo [ ] persistentFields ;
46
+ private FieldInfo [ ] PersistentFields => persistentFields ??= TypeInfo . PersistentFields ;
47
+
45
48
/// <summary>
46
49
/// Gets the underlying tuple.
47
50
/// </summary>
@@ -166,7 +169,7 @@ protected internal object GetFieldValue(string fieldName)
166
169
}
167
170
168
171
protected internal T GetFieldValue < T > ( int fieldIndex ) =>
169
- GetNormalizedFieldValue < T > ( TypeInfo . PersistentFields [ fieldIndex ] ) ;
172
+ GetNormalizedFieldValue < T > ( PersistentFields [ fieldIndex ] ) ;
170
173
171
174
/// <summary>
172
175
/// Gets the field value.
@@ -363,7 +366,7 @@ protected internal void SetFieldValue(string fieldName, object value)
363
366
}
364
367
365
368
protected internal void SetFieldValue < T > ( int fieldIndex , T value ) =>
366
- SetNormalizedFieldValue ( TypeInfo . PersistentFields [ fieldIndex ] , value , null , null ) ;
369
+ SetNormalizedFieldValue ( PersistentFields [ fieldIndex ] , value , null , null ) ;
367
370
368
371
/// <summary>
369
372
/// Sets the field value.
You can’t perform that action at this time.
0 commit comments