private static string mapKind(DataKind kind) { switch (kind) { case DataKind.DateTimeLocal: return("datetime-local"); case DataKind.Telephone: return("tel"); default: return(kind.ToString().ToLowerInvariant()); } }
protected virtual string MapCLRKindToJS(DataKind kind) { switch (kind) { case DataKind.DateTimeLocal: return("datetime-local"); case DataKind.Telephone: return("tel"); default: return(kind.ToString().ToLowerInvariant()); } }
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); }
protected virtual string MapCLRKindToJS(DataKind kind) { switch (kind) { case DataKind.DateTimeLocal: return "datetime-local"; case DataKind.Telephone: return "tel"; default: return kind.ToString().ToLowerInvariant(); } }
private static string mapKind(DataKind kind) { switch (kind) { case DataKind.DateTimeLocal: return "datetime-local"; case DataKind.Telephone: return "tel"; default: return kind.ToString().ToLowerInvariant(); } }
public string StrTGF() => kind == DataKind.unk ? " P:?" : float.IsNaN(nodeP) ? $" P{kind.ToString()[0]}:0" : FormattableString.Invariant($" P{kind.ToString()[0]}={nodeP:0.###}");
public string StrTGF() => kind == DataKind.unk ? " Q:?" : (edgeQ == 0) ? $" Q{kind.ToString()[0]}:0" : FormattableString.Invariant($" Q{kind.ToString()[0]}={edgeQ:0.#}");