Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Platform.cs « System.PAL « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bfaa276dbc511fc6a210ea4499552815696aae1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Sean MacIsaac
// Only want to have 1 OperatingSystemObject around.
// We get the correct one from compile time.

namespace System.PAL
{
	internal class Platform
	{
		private static OpSys _os;

		public static OpSys OS
		{

			get
			{
				if (_os == null) {
					_os = new OpSys ();
				}
				return _os;
			}
		}
	}
}