Repository navigation
|
Hi everyone, How to Get Initial Value of a field, if it has it? please provide sample code for demonstration. Thanks |
Answered by
Washi1337
Nov 18, 2024
Replies: 1 comment 1 reply
|
The initial value for fields are stored in a FieldRva row, which can be obtained by the FieldDefinition field = ...;
if (field.FieldRva is ISegment segment)
{
// Field has FieldRva data (initial value).
byte[] rawData = segment.WriteIntoArray();
} |
1 reply
Answer selected by
dashne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The initial value for fields are stored in a FieldRva row, which can be obtained by the
FieldRvaproperty: