Skip to content

Instantly share code, notes, and snippets.

namespace _;
public class Parameter<T> //: IParameter - unnecesary
{
private string? stringValue;
private T value;
public bool IsValid { get; private set; }
public static bool TryParse(string value, out Parameter<T> result)
{
@adamijak
adamijak / SystemTextJsonCosmosSerializer.cs
Last active October 1, 2022 18:45
Simple System.Text.Json serializer for CosmosDB.
using System.Text.Json;
using Microsoft.Azure.Cosmos;
namespace Common.Helpers;
public sealed class SystemTextJsonCosmosSerializer : CosmosSerializer
{
private readonly JsonSerializerOptions options;
public SystemTextJsonCosmosSerializer(JsonSerializerOptions options)
{