// Token: 0x06001659 RID: 5721 RVA: 0x00054610 File Offset: 0x00052810
        public static bool TryConvertOutputObjectKeyProperties(ConvertOutputPropertyEventArgs args, out object convertedValue)
        {
            convertedValue = null;
            ConfigurableObject configurableObject = args.ConfigurableObject;
            PropertyDefinition property           = args.Property;
            string             propertyInStr      = args.PropertyInStr;
            object             value = args.Value;

            if (value == null)
            {
                return(false);
            }
            if (!PswsKeyProperties.IsKeyProperty(configurableObject, property, propertyInStr))
            {
                return(false);
            }
            if (value is string)
            {
                convertedValue = UrlTokenConverter.UrlTokenEncode((string)value);
                return(true);
            }
            if (value is ObjectId)
            {
                convertedValue = new UrlTokenEncodedObjectId(value.ToString());
                return(true);
            }
            if (value is IUrlTokenEncode)
            {
                ((IUrlTokenEncode)value).ReturnUrlTokenEncodedString = true;
                convertedValue = value;
                return(true);
            }
            throw new NotSupportedException(string.Format("Value with type {0} is not supported.", value.GetType()));
        }
        // Token: 0x06000DE8 RID: 3560 RVA: 0x000298FC File Offset: 0x00027AFC
        public override string ToString()
        {
            string text  = SecurityPrincipalIdParameter.MapSidToAlias(base.RawIdentity);
            string text2 = (!string.IsNullOrEmpty(text)) ? text : base.ToString();

            if (this.ReturnUrlTokenEncodedString && text2 != null)
            {
                text2 = UrlTokenConverter.UrlTokenEncode(text2);
            }
            return(text2);
        }