- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
private OperatingSystem(SerializationInfo info, StreamingContext context)
{
    SerializationInfoEnumerator enumerator = info.GetEnumerator();
    while (enumerator.MoveNext())
    {
        string name = enumerator.Name;
        if (name != null)
        {
            if (!(name == "_version"))
            {
                if (name == "_platform")
                {
                    goto Label_0067;
                }
                if (name == "_servicePack")
                {
                    goto Label_0089;
                }
            }
            else
            {
                this._version = (Version) info.GetValue("_version", typeof(Version));
            }
        }
        continue;
    Label_0067:
        this._platform = (PlatformID) info.GetValue("_platform", typeof(PlatformID));
        continue;
    Label_0089:
        this._servicePack = info.GetString("_servicePack");
    }
    if (this._version == null)
    {
        throw new SerializationException(Environment.GetResourceString("Serialization_MissField", new object[] { "_version" }));
    }
}
                                 
        
while (enumerator.MoveNext())
{
string name = enumerator.Name;
if (name != null)
{
if (!(name == "_version"))
{
if (name == "_platform")
{
this._platform = (PlatformID)info.GetValue("_platform", typeof(PlatformID));
}
if (name == "_servicePack")
{
this._servicePack = info.GetString("_servicePack");
}
}
else
{
this._version = (Version)info.GetValue("_version", typeof(Version));
}
}
}