// Token: 0x06001BFE RID: 7166 RVA: 0x0006D538 File Offset: 0x0006B738
        private static string ConvertBetweenADRecipientProperties(IRecipientSession session, string convertFromPropertyValue, ADPropertyDefinition convertFromProperty, ADPropertyDefinition convertToProperty)
        {
            QueryFilter filter = new ComparisonFilter(ComparisonOperator.Equal, convertFromProperty, convertFromPropertyValue);

            ADRawEntry[] array = session.FindRecipient(session.SearchRoot, QueryScope.SubTree, filter, null, 1, new PropertyDefinition[]
            {
                convertToProperty
            });
            if (array == null || array.Length == 0 || array[0].propertyBag[convertToProperty] == null)
            {
                return(null);
            }
            return(array[0].propertyBag[convertToProperty].ToString());
        }
        // Token: 0x06001BFC RID: 7164 RVA: 0x0006D47C File Offset: 0x0006B67C
        private static ADRawEntry GetADRawEntryFromSmtpAddress(string smtpAddress)
        {
            IRecipientSession adrecipientSession = CallContext.Current.ADRecipientSessionContext.GetADRecipientSession();
            QueryFilter       filter             = new ComparisonFilter(ComparisonOperator.Equal, ADRecipientSchema.PrimarySmtpAddress, smtpAddress);

            ADRawEntry[] array = adrecipientSession.FindRecipient(adrecipientSession.SearchRoot, QueryScope.SubTree, filter, null, 1, new PropertyDefinition[]
            {
                ADRecipientSchema.PrimarySmtpAddress,
                ADRecipientSchema.RecipientType
            });
            if (array == null || array.Length == 0)
            {
                return(null);
            }
            return(array[0]);
        }