Undefined.cs 496 B

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