הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
An anonymous type cannot have multiple properties with the same name.
An anonymous type, just like any type, cannot have two properties that have the same name.
- Give each property in the type a unique name.
The following example generates CS0833:
// cs0833.cs
using System;
public class C
{
public static int Main()
{
var c = new { p1 = 1, p1 = 2 }; // CS0833
return 1;
}
}
משוב של .NET
.NET הוא פרויקט קוד פתוח. בחר קישור כדי לספק משוב: