144 lines
6.3 KiB
C#
144 lines
6.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited.</summary>
|
|
// Token: 0x0200018C RID: 396
|
|
[Token(Token = "0x200018C")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class OperatingSystem : ICloneable, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperatingSystem" /> class, using the specified platform identifier value and version object.</summary>
|
|
/// <param name="platform">One of the <see cref="T:System.PlatformID" /> values that indicates the operating system platform.</param>
|
|
/// <param name="version">A <see cref="T:System.Version" /> object that indicates the version of the operating system.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="version" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="platform" /> is not a <see cref="T:System.PlatformID" /> enumeration value.</exception>
|
|
// Token: 0x06000FEC RID: 4076 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FEC")]
|
|
[Address(RVA = "0x2A13940", Offset = "0x2A12740", VA = "0x182A13940")]
|
|
public OperatingSystem(PlatformID platform, Version version)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000FED RID: 4077 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FED")]
|
|
[Address(RVA = "0x2A13A50", Offset = "0x2A12850", VA = "0x182A13A50")]
|
|
private OperatingSystem(SerializationInfo information, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.PlatformID" /> enumeration value that identifies the operating system platform.</summary>
|
|
/// <returns>One of the <see cref="T:System.PlatformID" /> values.</returns>
|
|
// Token: 0x1700017E RID: 382
|
|
// (get) Token: 0x06000FEE RID: 4078 RVA: 0x0000CC60 File Offset: 0x0000AE60
|
|
[Token(Token = "0x1700017E")]
|
|
public PlatformID Platform
|
|
{
|
|
[Token(Token = "0x6000FEE")]
|
|
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
|
|
get
|
|
{
|
|
return PlatformID.Win32S;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Version" /> object that identifies the operating system.</summary>
|
|
/// <returns>A <see cref="T:System.Version" /> object that describes the major version, minor version, build, and revision numbers for the operating system.</returns>
|
|
// Token: 0x1700017F RID: 383
|
|
// (get) Token: 0x06000FEF RID: 4079 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700017F")]
|
|
public Version Version
|
|
{
|
|
[Token(Token = "0x6000FEF")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the service pack version represented by this <see cref="T:System.OperatingSystem" /> object.</summary>
|
|
/// <returns>The service pack version, if service packs are supported and at least one is installed; otherwise, an empty string ("").</returns>
|
|
// Token: 0x17000180 RID: 384
|
|
// (get) Token: 0x06000FF0 RID: 4080 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000180")]
|
|
public string ServicePack
|
|
{
|
|
[Token(Token = "0x6000FF0")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the concatenated string representation of the platform identifier, version, and service pack that are currently installed on the operating system.</summary>
|
|
/// <returns>The string representation of the values returned by the <see cref="P:System.OperatingSystem.Platform" />, <see cref="P:System.OperatingSystem.Version" />, and <see cref="P:System.OperatingSystem.ServicePack" /> properties.</returns>
|
|
// Token: 0x17000181 RID: 385
|
|
// (get) Token: 0x06000FF1 RID: 4081 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000181")]
|
|
public string VersionString
|
|
{
|
|
[Token(Token = "0x6000FF1")]
|
|
[Address(RVA = "0x479DA0", Offset = "0x478BA0", VA = "0x180479DA0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates an <see cref="T:System.OperatingSystem" /> object that is identical to this instance.</summary>
|
|
/// <returns>An <see cref="T:System.OperatingSystem" /> object that is a copy of this instance.</returns>
|
|
// Token: 0x06000FF2 RID: 4082 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000FF2")]
|
|
[Address(RVA = "0x2A13610", Offset = "0x2A12410", VA = "0x182A13610", Slot = "4")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data necessary to deserialize this instance.</summary>
|
|
/// <param name="info">The object to populate with serialization information.</param>
|
|
/// <param name="context">The place to store and retrieve serialized data. Reserved for future use.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000FF3 RID: 4083 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FF3")]
|
|
[Address(RVA = "0x2A13750", Offset = "0x2A12550", VA = "0x182A13750", Slot = "5")]
|
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Converts the value of this <see cref="T:System.OperatingSystem" /> object to its equivalent string representation.</summary>
|
|
/// <returns>The string representation of the values returned by the <see cref="P:System.OperatingSystem.Platform" />, <see cref="P:System.OperatingSystem.Version" />, and <see cref="P:System.OperatingSystem.ServicePack" /> properties.</returns>
|
|
// Token: 0x06000FF4 RID: 4084 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000FF4")]
|
|
[Address(RVA = "0x2A137F0", Offset = "0x2A125F0", VA = "0x182A137F0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400066B RID: 1643
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400066B")]
|
|
private PlatformID _platform;
|
|
|
|
// Token: 0x0400066C RID: 1644
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400066C")]
|
|
private Version _version;
|
|
|
|
// Token: 0x0400066D RID: 1645
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400066D")]
|
|
private string _servicePack;
|
|
}
|
|
}
|