我是新的 VB.net,希望得到一些帮助。如何将以下代码从 C# 转换为 VB.NET
protected override Func<XElement, Person> Selector
{
get
{
return x => new Person()
{
Id = x.Attribute("Id").GetGuid(),
FirstName = x.Attribute("FirstName").Value,
LastName = x.Attribute("LastName").Value,
Dias = x.Attribute("Dias").GetByte()
};
}
}