You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serialize the following derived type, it will throw “access method DerivedTypeWithDifferentOverrides.get_Name4() failed”. This is because the generated code is wrong and it try to access the internal Name4 property.
public class BaseType
{
public virtual string Name1 { get; set; }
public string Name2 { get; set; }
public string Name3 { get; set; }
public string Name4 { get; set; }
public string @Name5 { get; set; }
}
public class DerivedTypeWithDifferentOverrides : BaseType
{
public override string Name1 { get; set; }
new public string Name2 { get; set; }
new public string Name3 { get; set; }
new internal string Name4 { get; set; }
new public string Name5 { get; set; }
}
The text was updated successfully, but these errors were encountered:
When serialize the following derived type, it will throw “access method DerivedTypeWithDifferentOverrides.get_Name4() failed”. This is because the generated code is wrong and it try to access the internal Name4 property.
The text was updated successfully, but these errors were encountered: