let's say I have a class called foo:
Code:
public class foo
{
public string name { get; set; }
public string description { get; set; }
}
xsd.exe will generate a schema like so:
Code:
<xs:element name="foo" nillable="true" type="foo" />
<xs:complexType name="foo">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="name" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="description" type="xs:string" />
</xs:sequence>
</xs:complexType>
the trouble is those attributes that say
meaning that they are optional.
what attribute can I add to my properties to make them requred?