public XElement Serialize(string name = null) { return(new XElement(UblNames.Cac + (name ?? nameof(TenderingCriterionPropertyGroup)), ID.Serialize(nameof(ID)), Description.Serialize(nameof(Description)), PropertyGroupTypeCode.Serialize(nameof(PropertyGroupTypeCode)), FulfilmentIndicatorTypeCode.Serialize(nameof(FulfilmentIndicatorTypeCode)), TenderingCriterionProperties?.Select(prop => prop.Serialize()), SubsidiaryTenderingCriterionPropertyGroups?.Select(group => group.Serialize("SubsidiaryTenderingCriterionPropertyGroup")))); }
public XElement Serialize(string name = null) { return(new XElement(UblNames.Cac + (name ?? nameof(TenderingCriterion)), ID.Serialize(nameof(ID)), CriterionTypeCode.Serialize(nameof(CriterionTypeCode)), Name.Serialize(nameof(Name)), Description.Serialize(nameof(Description)), WeightNumeric.Serialize(nameof(WeightNumeric)), FulfilmentIndicator.Serialize(nameof(FulfilmentIndicator)), FulfilmentIndicatorTypeCode?.Serialize(nameof(FulfilmentIndicatorTypeCode)), EvaluationMethodTypeCode.Serialize(nameof(EvaluationMethodTypeCode)), WeightingConsiderationDescription.Serialize(nameof(WeightingConsiderationDescription)), SubTenderingCriteria?.Select(criterion => criterion.Serialize("SubTenderingCriterion")), Legislations?.Select(lex => lex.Serialize()), TenderingCriterionPropertyGroups?.Select(g => g.Serialize()) )); }