- 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" }));
}
}
zlob.jc 07.12.2009 08:59 # 0
eee_qqq 07.12.2009 09:04 # +1
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));
}
}
}
zlob.jc 07.12.2009 09:10 # 0
guest 07.12.2009 10:30 # 0
eee_qqq 07.12.2009 13:07 # 0
guest 24.12.2009 15:09 # +0.2
guest 07.12.2009 10:27 # 0
eee_qqq 07.12.2009 13:08 # 0
guest 07.12.2009 15:44 # 0
guest 11.12.2009 12:25 # +1.2