private IndexValue(IndexValueType type, object value) : this() { Type = type; Value = value; }
private static Exception TypeError(string fieldName, IndexValueType fieldType) { return(new ApplicationException($"Cannot return with string value because Indexfield '{fieldName}' is {fieldType}")); }