-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObject.To.UInt64Local.cs
44 lines (36 loc) · 1.24 KB
/
Object.To.UInt64Local.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
namespace Ace.CSharp.Extensions;
public static partial class ObjectExtensions
{
public static ulong ToUInt64Local(this object? @this)
{
return ToUInt64(@this, CultureInfo.CurrentCulture);
}
public static ulong ToUInt64OrDefaultLocal(this object? @this, ulong @default = default)
{
return ToUInt64OrDefault(@this, CultureInfo.CurrentCulture, @default);
}
public static ulong? ToUInt64OrNullLocal(this object? @this)
{
return ToUInt64OrNull(@this, CultureInfo.CurrentCulture);
}
public static bool TryConvertToUInt64Local(this object? @this, out ulong result)
{
return TryConvertToUInt64(@this, CultureInfo.CurrentCulture, out result);
}
public static ulong ToULongLocal(this object? @this)
{
return ToUInt64Local(@this);
}
public static ulong ToULongOrDefaultLocal(this object? @this, ulong @default = default)
{
return ToUInt64OrDefaultLocal(@this, @default);
}
public static ulong? ToULongOrNullLocal(this object? @this)
{
return ToUInt64OrNullLocal(@this);
}
public static bool TryConvertToULongLocal(this object? @this, out ulong result)
{
return TryConvertToUInt64Local(@this, out result);
}
}