Platform.cs 322 B

1234567891011121314151617181920212223
  1. // Sean MacIsaac
  2. // Only want to have 1 OperatingSystemObject around.
  3. // We get the correct one from compile time.
  4. namespace System.PAL
  5. {
  6. internal class Platform
  7. {
  8. private static OpSys _os;
  9. public static OpSys OS
  10. {
  11. get
  12. {
  13. if (_os == null) {
  14. _os = new OpSys ();
  15. }
  16. return _os;
  17. }
  18. }
  19. }
  20. }