// used by DllImportAttribute public void SetDllImport(int attributeIndex, string moduleName, string entryPointName, Cci.PInvokeAttributes flags, bool preserveSig) { VerifySealed(expected: false); Debug.Assert(attributeIndex >= 0); platformInvokeInfo = new DllImportData(moduleName, entryPointName, flags); this.dllImportIndex = attributeIndex; this.dllImportPreserveSig = preserveSig; SetDataStored(); }