示例#1
0
        /// <summary>
        /// Gets the beneficiary.
        /// </summary>
        /// <param name="pmName">Name of the pm.</param>
        /// <returns></returns>
        public BeneficiaryData GetBeneficiary(string pmName)
        {
            BeneficiaryData data = null;

            try
            {
                data = BeneficiaryDataList.Find(delegate(BeneficiaryData bd) { return(bd.Pm.Name == pmName); });
            }
            catch
            {
            }
            return(data);
        }
示例#2
0
        /// <summary>
        /// Gets the beneficiary.
        /// </summary>
        /// <param name="pm">The pm.</param>
        /// <returns></returns>
        public BeneficiaryData GetBeneficiary(PlayerMobile pm)
        {
            if (pm == null)
            {
                return(null);
            }
            BeneficiaryData data = null;

            try
            {
                data = BeneficiaryDataList.Find(delegate(BeneficiaryData bd) { return(bd.Pm == pm); });
            }
            catch
            {
            }
            return(data);
        }