Example #1
0
 /// <summary>
 /// 表示テキストへの変換
 /// </summary>
 /// <returns>表示テキスト</returns>
 public override string ToString()
 {
     if (OnGetViewText == null)
     {
         return(value.ToString());
     }
     else
     {
         return(OnGetViewText(this.value));
     }
 }
Example #2
0
                        public override string ToString()
                        {
                            var sb = new StringBuilder();

                            var accessor = default(TArrayAccessor);
                            var dim      = accessor.Length;
                            var p        = Point;

                            for (var i = 0; i < dim; i++)
                            {
                                sb.Append(accessor.At(ref p, i).ToString() + "\t");
                            }

                            sb.Append(Value?.ToString() ?? "null");

                            return(sb.ToString());
                        }
Example #3
0
        public override string Peek()
        {
            string temp = null;

            if (arrayA != null)
            {
                SortCars test_obj = arrayA[0] as SortCars;
                if (test_obj != null)
                {
                    temp     = "\n[\n ";
                    test_obj = TValue as SortCars;
                    temp     = test_obj.Print() + "\n";
                    return(temp);
                }
            }
            return(TValue.ToString());
        }
Example #4
0
 public IIconOption Convert(TValue?value)
 => new SelectOption(value?.ToString(), value, null);     // TODO: Replace "SelectOption" with something generic
Example #5
0
 public override string ToString()
 {
     return(key.ToString() + "," + value.ToString());
 }
Example #6
0
 /// <inheritdoc/>
 public override string ToString()
 {
     return(value == null ? string.Empty : value.ToString());
 }
Example #7
0
 public override string ToString()
 {
     return(BitConverter.ToString(_key).Replace("-", "").ToLower() + ": " + _value.ToString());
 }
Example #8
0
 public override string ToString()
 {
     return("const " + val.ToString());
 }
Example #9
0
 public override string ToString()
 {
     return(Key.ToString() + "   " + Value.ToString());
 }
Example #10
0
 internal string ToString(int count)
 {
     return((right != null ? right.ToString(count + 4) : new string(' ', count + 4) + "+ null") + "\n" + new string(' ', count) + (isLeft ? "L" : "R") + " \"" + key.ToString() + "\" : \"" + value.ToString() + "\" (" + balance + " | L" + _depthL + "R" + _depthR + ") \n" + (left != null ? left.ToString(count + 4) : new string(' ', count + 4) + "+ null"));
 }
Example #11
0
 public override string ToString() => Key.ToString() + "," + _value?.ToString() ?? "";
Example #12
0
 protected override string?FormatValueAsString(TValue?value)
 {
     return(value?.ToString());
 }