mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 10:26:46 +00:00
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
namespace BinaryObjectScanner
|
|
{
|
|
/// <summary>
|
|
/// Struct representing protection scanning progress
|
|
/// </summary>
|
|
#if NET20 || NET35 || NET40
|
|
public class ProtectionProgress : System.EventArgs
|
|
#else
|
|
public struct ProtectionProgress
|
|
#endif
|
|
{
|
|
/// <summary>
|
|
/// Filename to report progress for
|
|
/// </summary>
|
|
#if NETFRAMEWORK || NETCOREAPP3_1
|
|
public string? Filename { get; private set; }
|
|
#else
|
|
public string? Filename { get; init; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Value between 0 and 1 representign the percentage completed
|
|
/// </summary>
|
|
#if NETFRAMEWORK || NETCOREAPP3_1
|
|
public float Percentage { get; private set; }
|
|
#else
|
|
public float Percentage { get; init; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Protection information to report
|
|
/// </summary>
|
|
#if NETFRAMEWORK || NETCOREAPP3_1
|
|
public string? Protection { get; private set; }
|
|
#else
|
|
public string? Protection { get; init; }
|
|
#endif
|
|
|
|
public ProtectionProgress(string? filename, float percentage, string? protection)
|
|
{
|
|
this.Filename = filename;
|
|
this.Percentage = percentage;
|
|
this.Protection = protection;
|
|
}
|
|
}
|
|
}
|