示例#1
0
 /// <summary>
 /// Determines whether the specified <see cref="Cronofy.Profile"/> is
 /// equal to the current <see cref="Cronofy.Profile"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="Cronofy.Profile"/> to compare with the current
 /// <see cref="Cronofy.Profile"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="Cronofy.Profile"/> is equal
 /// to the current <see cref="Cronofy.Profile"/>; otherwise,
 /// <c>false</c>.
 /// </returns>
 public bool Equals(ProfileSummary other)
 {
     return(other != null &&
            this.ProfileId == other.ProfileId &&
            this.Name == other.Name &&
            this.ProviderName == other.ProviderName);
 }
示例#2
0
 /// <summary>
 /// Determines whether the specified <see cref="Cronofy.Profile"/> is
 /// equal to the current <see cref="Cronofy.Profile"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="Cronofy.Profile"/> to compare with the current
 /// <see cref="Cronofy.Profile"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="Cronofy.Profile"/> is equal
 /// to the current <see cref="Cronofy.Profile"/>; otherwise,
 /// <c>false</c>.
 /// </returns>
 public bool Equals(ProfileSummary other)
 {
     return other != null
         && this.ProfileId == other.ProfileId
         && this.Name == other.Name
         && this.ProviderName == other.ProviderName;
 }