private void SetBaseCoverage(Coverage_Type coverage) { if (coverage.ShouldSerializeIndicatorCode()) { throw new ArgumentException("The Coverage_Type.IndicatorCode must be null, because this method will set it to the appropriate value", "coverage.IndicatorCode"); } coverage.IndicatorCode = OLI_LU_COVINDCODE.OLI_COVIND_BASE; }
public override Sans_BaseCoverage_LifeBuilder AddBaseCoverage(Coverage_Type coverage) { SetBaseCoverage(coverage); // Make our Base coverage always first in the list. This isn't required, but it's nice to have _buildPropertiesActions.AddFirst(n => n.Coverage.Add(coverage)); _hasBaseCoverage = true; return(this); }
Sans_BaseCoverage_LifeBuilder Properties_LifeBuilder <Sans_BaseCoverage_LifeBuilder> .AddCoverage(Coverage_Type coverage) { return((Sans_BaseCoverage_LifeBuilder)AddCoverage(coverage)); }
// Restricted public abstract Sans_BaseCoverage_LifeBuilder AddBaseCoverage(Coverage_Type coverage);
// Non-restricted public abstract Sans_Properties_LifeBuilder AddCoverage(Coverage_Type coverage);
public override Sans_Properties_LifeBuilder AddCoverage(Coverage_Type coverage) { _buildPropertiesActions.AddLast(n => n.Coverage.Add(coverage)); return(this); }