Empty.cs 565 B

12345678910111213141516171819202122232425
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System
  5. {
  6. #if CORERT
  7. public // Needs to be public so that Reflection.Core can see it.
  8. #else
  9. internal
  10. #endif
  11. sealed class Empty
  12. {
  13. private Empty()
  14. {
  15. }
  16. public static readonly Empty Value = new Empty();
  17. public override string ToString()
  18. {
  19. return string.Empty;
  20. }
  21. }
  22. }