Skip to content

Commit eb8ab3d

Browse files
committed
refactor: 代码格式化
1 parent 882b951 commit eb8ab3d

File tree

1 file changed

+2
-2
lines changed
  • src/BootstrapBlazor.Server/Data

1 file changed

+2
-2
lines changed

src/BootstrapBlazor.Server/Data/Foo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public class Foo
109109
/// Generate Foo class, random data
110110
/// </summary>
111111
/// <returns>返回一个Foo类的List,Return a List of Foo class</returns>
112-
public static List<Foo> GenerateFoo(IStringLocalizer<Foo> localizer, int count = 80) => Enumerable.Range(1, count).Select(i => new Foo()
112+
public static List<Foo> GenerateFoo(IStringLocalizer<Foo> localizer, int count = 80) => [.. Enumerable.Range(1, count).Select(i => new Foo()
113113
{
114114
Id = i,
115115
Name = localizer["Foo.Name", $"{i:d4}"],
@@ -119,7 +119,7 @@ public class Foo
119119
Complete = Random.Shared.Next(1, 100) > 50,
120120
Education = Random.Shared.Next(1, 100) > 50 ? EnumEducation.Primary : EnumEducation.Middle,
121121
ReadonlyColumn = Random.Shared.Next(10, 50)
122-
}).ToList();
122+
})];
123123

124124
/// <summary>
125125
/// 生成 Foo 类 Hobbies 数据

0 commit comments

Comments
 (0)