Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Linq2GraphQL.Client/Common/CustomScalar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{
public class CustomScalar
{
internal string InternalValue { get; set; }
internal object InternalValue { get; set; }

public override string ToString()
{
return InternalValue;
return InternalValue?.ToString();
}

public virtual string Value
public virtual object Value
{
get { return InternalValue; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override TScalar Read(ref Utf8JsonReader reader, Type typeToConvert, Json

public override void Write(Utf8JsonWriter writer, TScalar value, JsonSerializerOptions options)
{
writer.WriteStringValue(value.InternalValue);
writer.WriteStringValue(value.InternalValue?.ToString());
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public MacAddress(string value)
Value = value;
}

public override string Value



public override object Value
{
get
{
Expand Down
Loading