IObjectConverter.cs 359 B

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