// Set data on this field within the ".sdata" section of the binary. internal void SetData(byte[] data, int size) { int rva; lock (typeof(AssemblyBuilder)) { if (data != null) { rva = ModuleBuilder.ClrModuleWriteData (type.module.privateData, data); } else { rva = ModuleBuilder.ClrModuleWriteGap (type.module.privateData, size); } ClrFieldSetRVA(privateData, rva); } }