-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLLEN.cs
50 lines (39 loc) · 855 Bytes
/
SQLLEN.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
using System;
namespace Arad.Net.Core.Informix;
internal struct SQLLEN
{
private nint _value;
internal SQLLEN(int value)
{
_value = new nint(value);
}
internal SQLLEN(long value)
{
_value = new nint(value);
}
internal SQLLEN(nint value)
{
_value = value;
}
public static implicit operator SQLLEN(int value)
{
return new SQLLEN(value);
}
public static explicit operator SQLLEN(long value)
{
return new SQLLEN(value);
}
public static implicit operator int(SQLLEN value)
{
long num = value._value.ToInt64();
return checked((int)num);
}
public static explicit operator long(SQLLEN value)
{
return value._value.ToInt64();
}
public long ToInt64()
{
return _value.ToInt64();
}
}