Ejemplo n.º 1
0
        public override string ToString()
        {
            var conflictCount = PropertyNameUtils.ConflictCountForID(id);
            var msg           = string.Format("{0}:{1}", PropertyNameUtils.StringFromPropertyName(this), id);

            if (conflictCount > 0)
            {
                StringBuilder sb = new StringBuilder(msg);
                sb.Append(" conflicts with ");
                for (int i = 0; i < conflictCount; i++)
                {
                    if (i == this.conflictIndex)
                    {
                        continue;
                    }

                    sb.AppendFormat("\"{0}\"", PropertyNameUtils.StringFromPropertyName(new PropertyName(id)
                    {
                        conflictIndex = i
                    }));
                }
                msg = sb.ToString();
            }
            return(msg);
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            int    num  = PropertyNameUtils.ConflictCountForID(this.id);
            string text = string.Format("{0}:{1}", PropertyNameUtils.StringFromPropertyName(this), this.id);
            bool   flag = num > 0;

            if (flag)
            {
                StringBuilder stringBuilder = new StringBuilder(text);
                stringBuilder.Append(" conflicts with ");
                for (int i = 0; i < num; i++)
                {
                    bool flag2 = i == this.conflictIndex;
                    if (!flag2)
                    {
                        stringBuilder.AppendFormat("\"{0}\"", PropertyNameUtils.StringFromPropertyName(new PropertyName(this.id)
                        {
                            conflictIndex = i
                        }));
                    }
                }
                text = stringBuilder.ToString();
            }
            return(text);
        }
Ejemplo n.º 3
0
        public override string ToString()
        {
            int    num  = PropertyNameUtils.ConflictCountForID(this.id);
            string text = string.Format("{0}:{1}", PropertyNameUtils.StringFromPropertyName(this), this.id);

            if (num > 0)
            {
                StringBuilder stringBuilder = new StringBuilder(text);
                stringBuilder.Append(" conflicts with ");
                for (int i = 0; i < num; i++)
                {
                    if (i != this.conflictIndex)
                    {
                        StringBuilder arg_84_0     = stringBuilder;
                        string        arg_84_1     = "\"{0}\"";
                        PropertyName  propertyName = new PropertyName(this.id);
                        propertyName.conflictIndex = i;
                        arg_84_0.AppendFormat(arg_84_1, PropertyNameUtils.StringFromPropertyName(propertyName));
                    }
                }
                text = stringBuilder.ToString();
            }
            return(text);
        }