Пример #1
0
        private static string mapKind(DataKind kind)
        {
            switch (kind)
            {
            case DataKind.DateTimeLocal: return("datetime-local");

            case DataKind.Telephone: return("tel");

            default: return(kind.ToString().ToLowerInvariant());
            }
        }
Пример #2
0
        protected virtual string MapCLRKindToJS(DataKind kind)
        {
            switch (kind)
            {
            case DataKind.DateTimeLocal: return("datetime-local");

            case DataKind.Telephone: return("tel");

            default: return(kind.ToString().ToLowerInvariant());
            }
        }
Пример #3
0
            public string GetTypeString()
            {
                string result = ItemKind.ToString();

                if (IsKey)
                {
                    result = $"Key<{result}>";
                }
                if (Kind == VectorKind.Vector)
                {
                    result = $"Vector<{result}>";
                }
                else if (Kind == VectorKind.VariableVector)
                {
                    result = $"VarVector<{result}>";
                }
                return(result);
            }
Пример #4
0
 protected virtual string MapCLRKindToJS(DataKind kind)
 {
   switch (kind)
   {
       case DataKind.DateTimeLocal: return "datetime-local";
       case DataKind.Telephone: return "tel";
       default: return kind.ToString().ToLowerInvariant();
   }
 }
Пример #5
0
 private static string mapKind(DataKind kind)
 {
   switch (kind)
   {
      case DataKind.DateTimeLocal: return "datetime-local";
      case DataKind.Telephone: return "tel";
      default: return kind.ToString().ToLowerInvariant();
   }
 }
Пример #6
0
 public string StrTGF() => kind == DataKind.unk
     ? " P:?"
     : float.IsNaN(nodeP)
         ? $" P{kind.ToString()[0]}:0"
         : FormattableString.Invariant($" P{kind.ToString()[0]}={nodeP:0.###}");
Пример #7
0
 public string StrTGF() => kind == DataKind.unk
     ? " Q:?"
     : (edgeQ == 0)
         ? $" Q{kind.ToString()[0]}:0"
         : FormattableString.Invariant($" Q{kind.ToString()[0]}={edgeQ:0.#}");