请遵循C#代码:
var body = new CustomerRequest
{
Method = "CREDIT_CARD",
CreditCard = new Creditcard
{
ExpirationMonth = "06",
ExpirationYear = "2022",
Number = "4012001037141112",
Cvc = "123"
}
};
我刚开始学习F#,发现不能像C#一样实例化类。以下是F#的代码:
let body = CustomerRequest
(
Method = "CREDIT_CARD" // Help here
)
我无法将C#转换为F#。