IObjectConverter.cs 329 B

123456789101112
  1. using System.Diagnostics.CodeAnalysis;
  2. using Jint.Native;
  3. namespace Jint.Runtime.Interop;
  4. /// <summary>
  5. /// When implemented, converts a CLR value to a <see cref="JsValue"/> instance
  6. /// </summary>
  7. public interface IObjectConverter
  8. {
  9. bool TryConvert(Engine engine, object value, [NotNullWhen(true)] out JsValue? result);
  10. }