那個叫匿名類型
參考官方文件https://docs.microsoft.com/zh-tw/dotnet/csharp/fundamentals/types/anonymous-types
他還可以用在那
我是知道還能用在LINQ回傳自訂的物件
在cshtml中還可以這樣用,當作參數傳遞
<script type="text/javascript">
    var categories = [];
    $.get({
        url: '@Url.Action("CategoryOptions", new { active = false })',
        type: "GET",
        cache: true,
        dataType: "json",
        async: false,
        success: function (data) {
            categories = data;
        }
    });
</script>