我有一个具有静态和只读属性的类
public class ClaSearchUser
{
public ClaSearchUser() { }
public struct Attributes
{
public static readonly Attribute EMAIL_ADRESS;
public static readonly Attribute FIRST_NAME;
public static readonly PuzzleAttribute STATUS;
}
}
但是当我使用它时,我会在电子邮件行中收到该错误。
foreach (DataRow mRow in data.Table.Rows)
{
String id = mRow[AttributeManager.Common.Ident.Name].ToString ();
String user_oid = mRow[AttributeManager.Common.Oid.Name].ToString ();
String email = mRow[ClaSearchUser.Attributes.EMAIL_ADRESS.Name].ToString ();
}
提前致谢