// Read the input Project file System::SharedPtr project = System::MakeObject(dataDir + u"WorkVariance.mpp"); Key, AsnKey> asnRsc = Asn::Resource(); { auto ra_enumerator = (project->get_ResourceAssignments())->GetEnumerator(); decltype(ra_enumerator->get_Current()) ra; while (ra_enumerator->MoveNext() && (ra = ra_enumerator->get_Current(), true)) { System::SharedPtr rsc; // C# preprocessor directive: #if !__cplusplus // C# preprocessor directive: #endif rsc = ra->Get(asnRsc); double d = rsc->Get(Rsc::WorkVariance()); System::Console::WriteLine(d); } }