Skip to content

Commit 0fd5ea1

Browse files
committed
Added C# language
1 parent b94d74b commit 0fd5ea1

File tree

2 files changed

+166
-0
lines changed

2 files changed

+166
-0
lines changed

languages/CSharpClass.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"modelStart": "{\n",
3+
"reservedKeywords": [
4+
"abstract",
5+
"assert",
6+
"boolean",
7+
"break",
8+
"byte",
9+
"case",
10+
"catch",
11+
"char",
12+
"class",
13+
"const",
14+
"continue",
15+
"default",
16+
"do",
17+
"double",
18+
"else",
19+
"enum",
20+
"extends",
21+
"false",
22+
"final",
23+
"finally",
24+
"float",
25+
"for",
26+
"goto",
27+
"if",
28+
"implements",
29+
"import",
30+
"instanceof",
31+
"int",
32+
"interface",
33+
"long",
34+
"native",
35+
"new",
36+
"null",
37+
"package",
38+
"private",
39+
"protected",
40+
"public",
41+
"return",
42+
"short",
43+
"static",
44+
"strictfp",
45+
"super",
46+
"switch",
47+
"synchronized",
48+
"this",
49+
"throw",
50+
"throws",
51+
"transient",
52+
"true",
53+
"try",
54+
"void",
55+
"volatile",
56+
"while",
57+
"class",
58+
"description",
59+
"string",
60+
"object"
61+
],
62+
63+
"dataTypes": {
64+
"arrayType": "IList<<!ElementType!>>",
65+
"generic": "object",
66+
"string": "string",
67+
"boolean": "bool",
68+
"float": "double",
69+
"doubleType": "double",
70+
"characterType": "char",
71+
"longType": "long",
72+
"int": "int"
73+
},
74+
75+
"modelDefinition": "\npublic class <!ModelName!> ",
76+
"fileExtension": "cs",
77+
"instanceVarDefinition": "\tpublic <!VarType!> <!VarName!> { get; set; }\n",
78+
"modelEnd": "\n}",
79+
"staticImports": "using System;\nusing System.Collections.Generic;",
80+
"supportsCamelcasing": false,
81+
"methods": {
82+
}
83+
}

languages/CSharpNewtonsoft.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"modelStart": "{\n",
3+
"reservedKeywords": [
4+
"abstract",
5+
"assert",
6+
"boolean",
7+
"break",
8+
"byte",
9+
"case",
10+
"catch",
11+
"char",
12+
"class",
13+
"const",
14+
"continue",
15+
"default",
16+
"do",
17+
"double",
18+
"else",
19+
"enum",
20+
"extends",
21+
"false",
22+
"final",
23+
"finally",
24+
"float",
25+
"for",
26+
"goto",
27+
"if",
28+
"implements",
29+
"import",
30+
"instanceof",
31+
"int",
32+
"interface",
33+
"long",
34+
"native",
35+
"new",
36+
"null",
37+
"package",
38+
"private",
39+
"protected",
40+
"public",
41+
"return",
42+
"short",
43+
"static",
44+
"strictfp",
45+
"super",
46+
"switch",
47+
"synchronized",
48+
"this",
49+
"throw",
50+
"throws",
51+
"transient",
52+
"true",
53+
"try",
54+
"void",
55+
"volatile",
56+
"while",
57+
"class",
58+
"description",
59+
"string",
60+
"object"
61+
],
62+
63+
"dataTypes": {
64+
"arrayType": "IList<<!ElementType!>>",
65+
"generic": "object",
66+
"string": "string",
67+
"boolean": "bool",
68+
"float": "double",
69+
"doubleType": "double",
70+
"characterType": "char",
71+
"longType": "long",
72+
"int": "int"
73+
},
74+
75+
"modelDefinition": "\npublic class <!ModelName!> ",
76+
"fileExtension": "cs",
77+
"instanceVarDefinition": "\n\t[JsonProperty(\"<!JsonKeyName!>\")]\n\tpublic <!VarType!> <!VarName!> { get; set; }\n",
78+
"modelEnd": "\n}",
79+
"staticImports": "using System;\nusing System.Collections.Generic;\n\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Converters;",
80+
"supportsCamelcasing": true,
81+
"methods": {
82+
}
83+
}

0 commit comments

Comments
 (0)