Sample source code has an incorrect property reference in line 22, and would not compile
Existing code:
for LMemoryDevice in SMBios.MemoryDeviceInformation do
should be:
for LMemoryDevice in SMBios.MemoryDeviceInfo do
The sample code compiles and runs just fine with that change.