/// <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); }
/// <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); }