@code { private string DateTimeFormatter(DateTime source) => source.ToString("yyyy-MM-dd"); private byte[] ByteArray { get; set; } = new byte[] { 0x01, 0x12, 0x34, 0x56 }; private string ByteArrayFormatter(byte[] source) => Convert.ToBase64String(source); }