forked from EvilBeaver/OneScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUseLibrary.cs
More file actions
100 lines (86 loc) · 2.78 KB
/
UseLibrary.cs
File metadata and controls
100 lines (86 loc) · 2.78 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*----------------------------------------------------------
This Source Code Form is subject to the terms of the
Mozilla Public License, v.2.0. If a copy of the MPL
was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.
----------------------------------------------------------*/
using OneScript.StandardLibrary;
using OneScript.StandardLibrary.Binary;
using OneScript.StandardLibrary.Collections;
using OneScript.StandardLibrary.Collections.ValueList;
using OneScript.StandardLibrary.Collections.ValueTable;
using OneScript.StandardLibrary.Collections.ValueTree;
using OneScript.StandardLibrary.Http;
using OneScript.StandardLibrary.Net;
using OneScript.StandardLibrary.Processes;
using OneScript.StandardLibrary.Text;
using OneScript.StandardLibrary.Xml;
using OneScript.StandardLibrary.Zip;
using OneScript.StandardLibrary.TypeDescriptions;
using ScriptEngine.Machine;
namespace Component
{
public static class UseLibrary
{
public static void Use<T>() where T : IValue
{
}
public static void Use()
{
/* Суть следующих выражений в том, что они перестанут компилироваться,
если какой-либо из классов поменяет область видимости
или переедет в иное пространство имён
(https://github.com/EvilBeaver/OneScript/commit/20e48fa7692b5430b819eb4b6982be1b591e536f)*/
Use<ArrayImpl>();
Use<FixedArrayImpl>();
Use<MapImpl>();
Use<FixedMapImpl>();
Use<StructureImpl>();
Use<FixedStructureImpl>();
Use<KeyAndValueImpl>();
Use<ValueTable>();
Use<ValueTableRow>();
Use<ValueTableColumn>();
Use<ValueTableColumnCollection>();
Use<BinaryDataQualifiers>();
Use<DateQualifiers>();
Use<FileContext>();
Use<GuidWrapper>();
Use<NumberQualifiers>();
Use<ProcessContext>();
Use<ReflectorContext>();
Use<TypeDescription>();
Use<TextWriteImpl>();
Use<TextReadImpl>();
Use<TextDocumentContext>();
Use<SystemEnvironmentContext>();
Use<StringQualifiers>();
Use<BinaryDataContext>();
Use<FileStreamContext>();
Use<GenericStream>();
Use<MemoryStreamContext>();
Use<TCPClient>();
Use<TCPServer>();
Use<HttpConnectionContext>();
Use<HttpRequestContext>();
Use<HttpResponseContext>();
Use<InternetProxyContext>();
Use<ValueListImpl>();
Use<ValueListItem>();
Use<ValueTree>();
Use<ValueTreeRow>();
Use<ValueTreeRowCollection>();
Use<ValueTreeColumn>();
Use<ValueTreeColumnCollection>();
Use<ZipReader>();
Use<ZipWriter>();
Use<ZipFileEntryContext>();
Use<ZipFileEntriesCollection>();
Use<XmlNamespaceContext>();
Use<XmlReaderImpl>();
Use<XmlWriterImpl>();
Use<StdTextReadStream>();
Use<StdTextWriteStream>();
}
}
}