public virtual object[] GetPrimitiveValues(object @object) { if (@object == null) { return(null); } Net.Vpc.Upa.Types.DatePeriod datePeriod = (Net.Vpc.Upa.Types.DatePeriod)@object; return(new object[] { datePeriod.GetCount(), ((int)datePeriod.GetPeriodType()) }); }
public override bool Equals(object obj) { if (obj == null) { return(false); } Net.Vpc.Upa.Types.DatePeriod datePeriod = (Net.Vpc.Upa.Types.DatePeriod)obj; return((count == datePeriod.count) && (periodType == datePeriod.periodType)); }