コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (PhoneNumber == null ? 0 : PhoneNumber.GetHashCode());
         hash = hash * 23 + (PhoneNumberTypeId == default(int) ? 0 : PhoneNumberTypeId.GetHashCode());
         return(hash);
     }
 }
 /// <summary>
 /// Get phone number type with specified id.
 /// </summary>
 /// <param name='phoneNumberTypeId'>Id of phone number type.</param>
 /// <returns>Requested phone number type.</returns>
 /// <exception cref="ArgumentException">Thrown if no data has the requested id.</exception>
 public IPhoneNumberType Get(PhoneNumberTypeId phoneNumberTypeId)
 {
     return(Get((Int32)phoneNumberTypeId));
 }
コード例 #3
0
 /// <summary>
 /// Get phone number type with specified id.
 /// </summary>
 /// <param name="userContext">User context.</param>
 /// <param name='phoneNumberTypeId'>Id of phone number type.</param>
 /// <returns>Requested phone number type.</returns>
 public virtual IPhoneNumberType GetPhoneNumberType(IUserContext userContext,
                                                    PhoneNumberTypeId phoneNumberTypeId)
 {
     return(GetPhoneNumberTypes(userContext).Get(phoneNumberTypeId));
 }