public GetVersion ( string key = "Version" ) : System.Version | ||
key | string | |
Результат | System.Version |
public static UpdateInfo FromString(string input) { var newInfo = new UpdateInfo(); if (string.IsNullOrEmpty(input)) { newInfo.IsValid = false; } else { var updateFile = new UpdateFile(input); newInfo.Version = updateFile.GetVersion(); newInfo.DownloadAddress = updateFile.GetUri("dURL"); newInfo.ChangeLogAddress = updateFile.GetUri("clURL"); #if false newInfo.ImageAddress = updateFile.GetUri("imgURL"); newInfo.ImageLinkAddress = updateFile.GetUri("imgURLLink"); #endif #if !PORTABLE newInfo.CertificateThumbprint = updateFile.GetThumbprint(); #endif newInfo.FileName = updateFile.GetFileName(); newInfo.Checksum = updateFile.GetChecksum(); newInfo.IsValid = newInfo.CheckIfValid(); } return(newInfo); }
public static UpdateInfo FromString(string input) { var newInfo = new UpdateInfo(); if (string.IsNullOrEmpty(input)) { newInfo.IsValid = false; } else { var updateFile = new UpdateFile(input); newInfo.Version = updateFile.GetVersion("Version"); newInfo.DownloadAddress = updateFile.GetUri("dURL"); newInfo.ChangeLogAddress = updateFile.GetUri("clURL"); newInfo.ImageAddress = updateFile.GetUri("imgURL"); newInfo.ImageLinkAddress = updateFile.GetUri("imgURLLink"); newInfo.CertificateThumbprint = updateFile.GetThumbprint("CertificateThumbprint"); newInfo.IsValid = true; } return(newInfo); }
public static UpdateInfo FromString(string input) { var newInfo = new UpdateInfo(); if (string.IsNullOrEmpty(input)) { newInfo.IsValid = false; } else { var updateFile = new UpdateFile(input); newInfo.Version = updateFile.GetVersion(); newInfo.DownloadAddress = updateFile.GetUri("dURL"); newInfo.ChangeLogAddress = updateFile.GetUri("clURL"); newInfo.ImageAddress = updateFile.GetUri("imgURL"); newInfo.ImageLinkAddress = updateFile.GetUri("imgURLLink"); #if !PORTABLE newInfo.CertificateThumbprint = updateFile.GetThumbprint(); #endif newInfo.FileName = updateFile.GetFileName(); newInfo.Checksum = updateFile.GetChecksum(); newInfo.IsValid = true; } return newInfo; }