mirror of
https://github.com/bitwarden/server
synced 2025-12-26 21:23:39 +00:00
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)" This reverts commit239286737d. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a.
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Bit.Core.Utilities;
|
||||
|
||||
public class HandlebarsObjectJsonConverter : JsonConverter<object>
|
||||
namespace Bit.Core.Utilities
|
||||
{
|
||||
public override bool CanConvert(Type typeToConvert) => true;
|
||||
public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
public class HandlebarsObjectJsonConverter : JsonConverter<object>
|
||||
{
|
||||
return JsonSerializer.Deserialize<Dictionary<string, object>>(ref reader, options);
|
||||
}
|
||||
public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)
|
||||
{
|
||||
JsonSerializer.Serialize(writer, value, options);
|
||||
public override bool CanConvert(Type typeToConvert) => true;
|
||||
public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
{
|
||||
return JsonSerializer.Deserialize<Dictionary<string, object>>(ref reader, options);
|
||||
}
|
||||
public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)
|
||||
{
|
||||
JsonSerializer.Serialize(writer, value, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user