-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathString.To.UInt32Local.cs
44 lines (36 loc) · 1.22 KB
/
String.To.UInt32Local.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 StringExtensions
{
public static uint ToUInt32Local(this string? @this)
{
return ToUInt32(@this, CultureInfo.CurrentCulture);
}
public static uint ToUInt32OrDefaultLocal(this string? @this, uint @default = default)
{
return ToUInt32OrDefault(@this, CultureInfo.CurrentCulture, @default);
}
public static uint? ToUInt32OrNullLocal(this string? @this)
{
return ToUInt32OrNull(@this, CultureInfo.CurrentCulture);
}
public static bool TryConvertToUInt32Local(this string? @this, out uint result)
{
return TryConvertToUInt32(@this, CultureInfo.CurrentCulture, out result);
}
public static uint ToUIntLocal(this string? @this)
{
return ToUInt32Local(@this);
}
public static uint ToUIntOrDefaultLocal(this string? @this, uint @default = default)
{
return ToUInt32OrDefaultLocal(@this, @default);
}
public static uint? ToUIntOrNullLocal(this string? @this)
{
return ToUInt32OrNullLocal(@this);
}
public static bool TryConvertToUIntLocal(this string? @this, out uint result)
{
return TryConvertToUInt32Local(@this, out result);
}
}