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
Contract.cs(177,40): error CS0738: 'PorscheType' does not implement interface member 'ILimitedEditionType.IsAvailable'. 'PorscheType.IsAvailable' cannot implement 'ILimitedEditionType.IsAvailable' because it does not have the matching return type of 'bool'.
XSD group generates an interface but does not handle Nullable types:
public partial class PorscheType : ILimitedEditionType
{
[System.Xml.Serialization.XmlElementAttribute("IsAvailable", Namespace="http://car/1.0", IsNullable=true)]
public System.Nullable<bool> IsAvailable { get; set; }
[System.Xml.Serialization.XmlElementAttribute("Model", Namespace="http://car/1.0")]
public string Model { get; set; }
}
public partial interface ILimitedEditionType
{
bool IsAvailable
{
get;
set;
}
}
The text was updated successfully, but these errors were encountered:
To reproduce the error, try to generate contracts from the following XSD:
Error:
XSD group generates an interface but does not handle Nullable types:
The text was updated successfully, but these errors were encountered: