GenerateSyncListInstanceInitializer comment added

This commit is contained in:
vis2k 2018-12-31 16:53:04 +01:00
parent 648cb0ba1a
commit 91e13ce87a

View File

@ -283,6 +283,7 @@ void GenerateConstants()
m_td.Attributes = m_td.Attributes & ~TypeAttributes.BeforeFieldInit; m_td.Attributes = m_td.Attributes & ~TypeAttributes.BeforeFieldInit;
} }
// generates 'syncListInt = new SyncListInt()' if user didn't do that yet
void GenerateSyncListInstanceInitializer(ILProcessor ctorWorker, FieldDefinition fd) void GenerateSyncListInstanceInitializer(ILProcessor ctorWorker, FieldDefinition fd)
{ {
// check the ctor's instructions for an Stfld op-code for this specific sync list field. // check the ctor's instructions for an Stfld op-code for this specific sync list field.