-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathOnlyOnceTemplate.sbntxt
63 lines (57 loc) · 2.45 KB
/
OnlyOnceTemplate.sbntxt
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
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:{{ RuntimeVersion }}
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
namespace {{ NamespaceName }}.Json
{
/// <summary>
/// Mark a class with this attribute and provide it with the original class name to rename it.
/// </summary>
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("{{ ToolName }}", "{{ ToolVersion }}")]
[AttributeUsage(AttributeTargets.Class)]
internal sealed class JsonRenamedFromAttribute : Attribute
{
internal string SourceName { get; private set; }
internal JsonRenamedFromAttribute(string sourceName)
{
SourceName = sourceName;
}
}
/// <summary>
/// Mark an assembly with this attribute and pass the namespace name you would like to be used for the generated code.
/// </summary>
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("{{ ToolName }}", "{{ ToolVersion }}")]
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class JsonRenameNamespaceAttribute : Attribute
{
internal string SourceName { get; private set; }
internal string TargetName { get; private set; }
internal JsonRenameNamespaceAttribute(string sourceNamespaceName, string targetNamespaceName)
{
SourceName = sourceNamespaceName;
TargetName = targetNamespaceName;
}
}
/// <summary>
/// Mark a string constant with this attribute to be able to use it as an example of your json structure in code.
/// </summary>
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("{{ ToolName }}", "{{ ToolVersion }}")]
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
internal sealed class JsonExampleAttribute : Attribute
{
internal string Name { get; private set; }
internal JsonExampleAttribute(string name)
{
Name = name;
}
}
}