Example #1
0
        public void SerializeSingleValue()
        {
            var item = UserIdOrUserNameRef.FromUserName("test");

            _ = JsonSerializer.Serialize(item, JsonSerialization.Options);
        }
Example #2
0
        public void SerializeCollection()
        {
            var item = UserIdOrUserNameRef.FromUserName("test");

            _ = JsonSerializer.Serialize(new[] { item, item }, JsonSerialization.Options);
        }