我尝试为 Metro 应用实施应用内购买。我在这里按照教程进行操作。
C#代码是
function AppInit()
{
// some app initialization functions
// Get the license info
// The next line is commented out for testing.
// licenseInformation = CurrentApp.LicenseInformation;
// The next line is commented out for production/release.
licenseInformation = CurrentAppSimulator.LicenseInformation;
// other app initialization functions
}
但是,C# 中没有function
关键字。这是错误吗?如果是这样,正确的代码假设是什么?