Esempio n. 1
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);
        }
        public static PropertyName PropertyNameFromString([Unmarshalled] string name)
        {
            PropertyName result;

            PropertyNameUtils.PropertyNameFromString_Injected(name, out result);
            return(result);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        public static PropertyName PropertyNameFromString([NativeParameter(Unmarshalled = true)] string name)
        {
            PropertyName result;

            PropertyNameUtils.PropertyNameFromString_Injected(name, out result);
            return(result);
        }
Esempio n. 5
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);
        }
Esempio n. 6
0
 public PropertyName(string name)
 {
     this = new PropertyName(PropertyNameUtils.PropertyNameFromString(name));
 }
 public static string StringFromPropertyName(PropertyName propertyName)
 {
     return(PropertyNameUtils.StringFromPropertyName_Injected(ref propertyName));
 }
Esempio n. 8
0
 public PropertyName(string name)
     : this(PropertyNameUtils.PropertyNameFromString(name))
 {
 }