/// <summary>
 /// 表示テキストへの変換
 /// </summary>
 /// <returns>表示テキスト</returns>
 public override string ToString()
 {
     if (OnGetViewText == null)
     {
         return(value.ToString());
     }
     else
     {
         return(OnGetViewText(this.value));
     }
 }
Exemple #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());
                        }
Exemple #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());
        }
Exemple #4
0
 public IIconOption Convert(TValue?value)
 => new SelectOption(value?.ToString(), value, null);     // TODO: Replace "SelectOption" with something generic
Exemple #5
0
 public override string ToString()
 {
     return(key.ToString() + "," + value.ToString());
 }
Exemple #6
0
 /// <inheritdoc/>
 public override string ToString()
 {
     return(value == null ? string.Empty : value.ToString());
 }
Exemple #7
0
 public override string ToString()
 {
     return(BitConverter.ToString(_key).Replace("-", "").ToLower() + ": " + _value.ToString());
 }
Exemple #8
0
 public override string ToString()
 {
     return("const " + val.ToString());
 }
Exemple #9
0
 public override string ToString()
 {
     return(Key.ToString() + "   " + Value.ToString());
 }
Exemple #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"));
 }
Exemple #11
0
 public override string ToString() => Key.ToString() + "," + _value?.ToString() ?? "";
Exemple #12
0
 protected override string?FormatValueAsString(TValue?value)
 {
     return(value?.ToString());
 }