Skip to content

Commit 2f52dce

Browse files
committed
Cannot use a default parameter with primary constructor
1 parent 5a081ab commit 2f52dce

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

projects/.net8/minimal-api-form-model-binding/Program.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,4 @@ public class BlogPostInput(string? title, string body)
7373
{
7474
public string? Title { get; set; } = title;
7575
public string Body { get; set; } = body;
76-
77-
public BlogPostInput() : this(null, string.Empty)
78-
{
79-
80-
}
8176
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Minimal API form model binding
22

33
This sample demonstrates the ability to use `[FromForm]` binding in Minimal API.
4-
5-
6-
Note: This is broken in RC 2

0 commit comments

Comments
 (0)