/// <summary>
        /// Returns true if ComAdobeGraniteFragsImplRandomFeatureProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteFragsImplRandomFeatureProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteFragsImplRandomFeatureProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FeatureName == other.FeatureName ||
                     FeatureName != null &&
                     FeatureName.Equals(other.FeatureName)
                     ) &&
                 (
                     FeatureDescription == other.FeatureDescription ||
                     FeatureDescription != null &&
                     FeatureDescription.Equals(other.FeatureDescription)
                 ) &&
                 (
                     ActivePercentage == other.ActivePercentage ||
                     ActivePercentage != null &&
                     ActivePercentage.Equals(other.ActivePercentage)
                 ) &&
                 (
                     CookieName == other.CookieName ||
                     CookieName != null &&
                     CookieName.Equals(other.CookieName)
                 ) &&
                 (
                     CookieMaxAge == other.CookieMaxAge ||
                     CookieMaxAge != null &&
                     CookieMaxAge.Equals(other.CookieMaxAge)
                 ));
        }
Пример #2
0
 public Boolean AuthenticatedThisWay(IPrincipal p)
 {
     return(CookieName.Equals(p.Identity.AuthenticationType));
 }