-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelpers.cs
59 lines (49 loc) · 1.36 KB
/
Helpers.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
using System;
namespace ABCNET
{
internal static class ObsoletePABCSystemStyleHelper
{
internal const string Message = "Äàííûé êëàññ èëè ìåòîä ÿâëÿåòñÿ óñòàðåâøèì. Èñïîëüçóéòå åãî ñîâðåìåííûé àíàëîã: ";
}
internal static class ArrayHelper<T>
{
internal static T[] Empty { get; } = new T[0];
}
internal static class NilStringHelper
{
internal const string Nil = "nil";
}
internal static class EmptyStringHelper
{
internal const string Empty = "";
}
internal static class InputErrorHelper
{
internal const string Message = "Íåâåðíûé ââîä. Ââåäèòå ýëåìåíò ïîâòîðíî.";
}
internal static class DefaultDelimiterHelper
{
internal const string Delimiter = " ";
}
internal static class RandomHelper
{
internal static Random Random { get; } = new Random();
}
internal static class Int32BordersHelper
{
internal const int Low = 0;
internal const int High = int.MaxValue - 1;
}
internal static class DoubleBordersHelper
{
internal const double Low = 0;
internal const double High = double.MaxValue;
}
internal static class ObjExt
{
internal static string NilOrString<T>(this T item)
{
return item == null ? NilStringHelper.Nil : item.ToString();
}
}
}