Yes:
let n = Person(FirstName = "John", LastName = "Smith")
Note that the F # approach is actually much more flexible than the C # approach, since you can use the post hoc property assignments by any method call (and not just the constructors). For example, if the type Personhas a static method called CreatePerson : string -> Personthat creates a new person and assigns the first name, you can also use it as:
let n = Person.CreatePerson("John", LastName = "Smith")
source
share