Skip to content

Commit 44a4758

Browse files
committed
missed merge
1 parent 685441a commit 44a4758

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/NRedisStack/Search/FieldName.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ public int AddCommandArguments(List<object> args)
2626
return 3;
2727
}
2828

29-
public static FieldName Of(string name)
30-
{
31-
return new FieldName(name);
32-
}
29+
public static FieldName Of(string name) => new(name);
3330

3431
public FieldName As(string attribute)
3532
{
3633
this.Alias = attribute;
3734
return this;
3835
}
36+
37+
public static implicit operator FieldName(string name) => new(name);
3938
}
4039
}

0 commit comments

Comments
 (0)