Beispiel #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Returns HashCode</returns>
 public override int GetHashCode()
 {
     return(String.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|",
                          PasswordProfile.GetHashCode(),
                          AccountEnabled.GetHashCode(),
                          DisplayName?.GetHashCode() ?? 0,
                          MailNickname?.GetHashCode() ?? 0,
                          PasswordPolicies?.GetHashCode() ?? 0,
                          UserPrincipalName?.GetHashCode() ?? 0,
                          ProfilePhoto?.GetHashCode() ?? 0,
                          Licenses.Aggregate(0, (acc, next) => acc += (next != null ? next.GetHashCode() : 0))
                          ).GetHashCode());
 }
        public object Resolve(object source, Dictionary <String, IResolver> resolvers = null, Boolean recursive = false)
        {
            var result = new AAD.PasswordProfile();

            var passwordProfile = source.GetPublicInstancePropertyValue("PasswordProfile");

            if (null != passwordProfile)
            {
                PnPObjectsMapper.MapProperties(passwordProfile, result, resolvers, recursive);
            }

            return(result);
        }