Undefined.cs 510 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using Jint.Runtime;
  3. namespace Jint.Native
  4. {
  5. public class Undefined : IPrimitiveType
  6. {
  7. public static object Instance = new Undefined();
  8. private Undefined()
  9. {
  10. }
  11. public override string ToString()
  12. {
  13. return "undefined";
  14. }
  15. public Types Type
  16. {
  17. get { return Types.Undefined; }
  18. }
  19. public object PrimitiveValue
  20. {
  21. get { return Instance; }
  22. }
  23. }
  24. }