-
Notifications
You must be signed in to change notification settings - Fork 712
/
Version.cs
60 lines (55 loc) · 1.54 KB
/
Version.cs
1
2
3
4
5
6
7
8
9
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.IO;
using System.Text;
namespace Microsoft.Research.SEAL
{
/// <summary>
/// This class contains static methods for retrieving Microsoft SEAL's version numbers.
/// </summary>
/// <remark>
/// Use the name SEALVersion to distinguish it from System.Version.
/// </remark>
public static class SEALVersion
{
/// <summary>
/// Returns Microsoft SEAL's version number string.
/// </summary>
static public string Version => $"{SEALVersion.Major}.{SEALVersion.Minor}.{SEALVersion.Patch}";
///
/// <summary>
/// Returns Microsoft SEAL's major version number.
/// </summary>
static public byte Major
{
get
{
NativeMethods.Version_Major(out byte result);
return result;
}
}
/// <summary>
/// Returns Microsoft SEAL's minor version number.
/// </summary>
static public byte Minor
{
get
{
NativeMethods.Version_Minor(out byte result);
return result;
}
}
/// <summary>
/// Returns Microsoft SEAL's patch version number.
/// </summary>
static public byte Patch
{
get
{
NativeMethods.Version_Patch(out byte result);
return result;
}
}
}
}