DevTreks.Data/EditHelpers/XmlIO.cs
/// <summary>
/// True if this time element is an annuity, or growth series
/// </summary>
/// <param name="timeElement"></param>
/// <returns></returns>
True if this time element is an annuity, or growth series
True if this time element is an annuity or growth series
public static bool IsAnnuityElement(XmlElement timeElement)
        {
            bool bIsAnnuity = false;
            if (timeElement.HasAttribute("Unit"))
            {
                string sAnnuityValue = timeElement.GetAttribute("Unit");
                if (sAnnuityValue.Equals("annuity")
                    || sAnnuityValue.Equals("uniform")
                    || sAnnuityValue.Equals("linear")
                    || sAnnuityValue.Equals("geometric"))
                {
                    bIsAnnuity = true;
                }
            }
            return bIsAnnuity;
        }
public static bool IsAnnuityElement ( XmlElement timeElement ) { bool bIsAnnuity = false ; if ( timeElement . HasAttribute ( " " ) ) { string sAnnuityValue = timeElement . GetAttribute ( " " ) ; if ( sAnnuityValue . Equals ( " " ) || sAnnuityValue . Equals ( " " ) || sAnnuityValue . Equals ( " " ) || sAnnuityValue . Equals ( " " ) ) { bIsAnnuity = true ; } } return bIsAnnuity ; }
True if this time element is an annuity, or growth series
True if this time element is an annuity or growth series
None
timeElement
XmlElement
None