protected FrameworkInfo(SerializationInfo info, StreamingContext context)
{
_name = info.GetString("Name");
_family = info.GetString("Family");
_description = info.GetString("Description");
_status = (InitStatus) info.GetValue("Status", typeof(InitStatus));
_clrType = (ClrType) info.GetValue("ClrType", typeof(ClrType));
_version = (Version) info.GetValue("Version", typeof(Version));
_clrVersion = (Version) info.GetValue("ClrVersion", typeof(Version));
_vendor = (VendorType) info.GetValue("Vendor", typeof(VendorType));
if (_status != InitStatus.Valid) {
return;
}
_frameworkDirectory = (DirectoryInfo) info.GetValue("FrameworkDirectory", typeof(DirectoryInfo));
_sdkDirectory = (DirectoryInfo) info.GetValue("SdkDirectory", typeof(DirectoryInfo));
_frameworkAssemblyDirectory = (DirectoryInfo) info.GetValue("FrameworkAssemblyDirectory", typeof(DirectoryInfo));
_runtime = (Runtime) info.GetValue("Runtime", typeof(Runtime));
_project = (Project) info.GetValue("Project", typeof(Project));
_taskAssemblies = (FileSet) info.GetValue("TaskAssemblies", typeof(FileSet));
_referenceAssemblies = (FileSet[]) info.GetValue("ReferenceAssemblies", typeof(FileSet[]));
_toolPaths = (string[]) info.GetValue("ToolPaths", typeof(string[]));
}