FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
OneScript/src/OneScript.Core/Types/BasicTypes.cs at develop · ivtroitskiy/OneScript · GitHub
ivtroitskiy
/
OneScript
Public
forked from
EvilBeaver/OneScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
OneScript
/
src
/
OneScript.Core
/
Types
/
BasicTypes.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
74 lines (63 loc) · 2.8 KB
Breadcrumbs
OneScript
/
src
/
OneScript.Core
/
Types
/
BasicTypes.cs
Copy path
File metadata and controls
74 lines (63 loc) · 2.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/*----------------------------------------------------------
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
System
;
using
OneScript
.
Values
;
namespace
OneScript
.
Types
{
public
static
class
BasicTypes
{
public
static
TypeDescriptor
Number
{
get
;
}
public
static
TypeDescriptor
String
{
get
;
}
public
static
TypeDescriptor
Date
{
get
;
}
public
static
TypeDescriptor
Boolean
{
get
;
}
public
static
TypeDescriptor
Undefined
{
get
;
}
public
static
TypeDescriptor
Type
{
get
;
}
public
static
TypeDescriptor
Null
{
get
;
}
/// <summary>
/// Тип, устанавливаемый объектам, которые не задали свой тип
/// Если значение этого типа возвращается функцией ТипЗнч - это ошибка автора объекта.
/// </summary>
public
static
TypeDescriptor
UnknownType
{
get
;
}
static
BasicTypes
(
)
{
Number
=
new
TypeDescriptor
(
new
Guid
(
"A7403601-38B7-420A-8630-84A1F675E102"
)
,
"Число"
,
"Number"
,
typeof
(
BslNumericValue
)
)
;
String
=
new
TypeDescriptor
(
new
Guid
(
"1AF7A333-33A1-45E2-BC5E-65CE2455D619"
)
,
"Строка"
,
"String"
,
typeof
(
BslStringValue
)
)
;
Date
=
new
TypeDescriptor
(
new
Guid
(
"A7E20D06-E876-4949-9DB2-7C93891F3B87"
)
,
"Дата"
,
"Date"
,
typeof
(
BslDateValue
)
)
;
Boolean
=
new
TypeDescriptor
(
new
Guid
(
"34EDD2E3-DD29-4829-A424-67B3404AF423"
)
,
"Булево"
,
"Boolean"
,
typeof
(
BslBooleanValue
)
)
;
Undefined
=
new
TypeDescriptor
(
new
Guid
(
"783CE532-8CE0-4C59-BEF4-835AEFB715E4"
)
,
"Неопределено"
,
"Undefined"
,
typeof
(
BslUndefinedValue
)
)
;
Type
=
new
TypeDescriptor
(
new
Guid
(
"4BCF3B78-B525-4159-8180-C76EDA613652"
)
,
"Тип"
,
"Type"
,
typeof
(
BslTypeValue
)
)
;
Null
=
new
TypeDescriptor
(
new
Guid
(
"26D78088-915A-4294-97E1-FB39E70187A6"
)
,
"Null"
,
"Null"
,
typeof
(
BslNullValue
)
)
;
UnknownType
=
new
TypeDescriptor
(
new
Guid
(
"EC3408A3-18A7-4A38-936F-7E7094D3C4E3"
)
,
"$UnknownType$"
,
"$UnknownType$"
,
typeof
(
BslValue
)
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL