Ejemplo n.º 1
0
        public static byte[] GetEncodedPropertyName(string propertyName)
        {
            var writer = new JsonWriterUtf8();

            writer.WritePropertyName(propertyName);
            return(writer.ToUtf8ByteArray());
        }
Ejemplo n.º 2
0
        public static byte[] GetEncodedPropertyNameWithPrefixValueSeparator(string propertyName)
        {
            var writer = new JsonWriterUtf8();

            writer.WriteValueSeparator();
            writer.WritePropertyName(propertyName);
            return(writer.ToUtf8ByteArray());
        }