forked from hybridview/ConfigurationSectionDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSample.csd
More file actions
103 lines (103 loc) · 4.88 KB
/
Sample.csd
File metadata and controls
103 lines (103 loc) · 4.88 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
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<configurationSectionModel dslVersion="1.0.0.0" Id="ab30db0b-dc8b-4ce7-8183-7764183593ef" namespace="Sample" xmlSchemaNamespace="urn:sample" assemblyName="Sample.Rocks" xmlns="http://schemas.microsoft.com/dsltools/ConfigurationSectionDesigner">
<typeDefinitions>
<externalType name="String" namespace="System" />
<externalType name="Boolean" namespace="System" />
<externalType name="Int32" namespace="System" />
<externalType name="Int64" namespace="System" />
<externalType name="Single" namespace="System" />
<externalType name="Double" namespace="System" />
<externalType name="DateTime" namespace="System" />
<externalType name="TimeSpan" namespace="System" />
<enumeratedType name="LetterFlags" namespace="Sample" isFlags="true">
<literals>
<enumerationLiteral name="A" value="1" />
<enumerationLiteral name="B" value="2" />
<enumerationLiteral name="C" value="4" />
<enumerationLiteral name="D" value="8" />
</literals>
</enumeratedType>
<externalType name="CustomType" namespace="Debugging" />
</typeDefinitions>
<configurationElements>
<configurationSection name="SampleConfigurationSection" codeGenOptions="Singleton, XmlnsProperty" xmlSectionName="sampleConfigurationSection">
<attributeProperties>
<attributeProperty name="Samples" isRequired="false" isKey="false" isDefaultCollection="false" xmlName="samples" isReadOnly="false">
<customAttributes />
<type>
<externalTypeMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Int32" />
</type>
</attributeProperty>
</attributeProperties>
<elementProperties>
<elementProperty name="Foo" isRequired="false" isKey="false" isDefaultCollection="false" xmlName="foo" isReadOnly="false">
<customAttributes />
<type>
<configurationElementMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Foo" />
</type>
</elementProperty>
<elementProperty name="Bars" isRequired="false" isKey="false" isDefaultCollection="false" xmlName="bars" isReadOnly="false">
<customAttributes />
<type>
<configurationElementCollectionMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Bars" />
</type>
</elementProperty>
</elementProperties>
</configurationSection>
<configurationElement name="Foo">
<attributeProperties>
<attributeProperty name="Baz" isRequired="false" isKey="false" isDefaultCollection="false" xmlName="baz" isReadOnly="false" typeConverter="Custom">
<customAttributes />
<customTypeConverter>
<converterMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/CustomTypeTypeConverter" />
</customTypeConverter>
<type>
<externalTypeMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/CustomType" />
</type>
</attributeProperty>
</attributeProperties>
</configurationElement>
<configurationElementCollection name="Bars" xmlItemName="bar" codeGenOptions="Indexer, AddMethod, RemoveMethod, GetItemMethods">
<itemType>
<configurationElementMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Bar" />
</itemType>
</configurationElementCollection>
<configurationElement name="Bar">
<attributeProperties>
<attributeProperty name="Snap" isRequired="true" isKey="false" isDefaultCollection="false" xmlName="snap" isReadOnly="false">
<customAttributes />
<type>
<externalTypeMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Boolean" />
</type>
</attributeProperty>
<attributeProperty name="Crackle" isRequired="true" isKey="true" isDefaultCollection="false" xmlName="crackle" isReadOnly="false">
<customAttributes />
<type>
<externalTypeMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/Single" />
</type>
</attributeProperty>
</attributeProperties>
</configurationElement>
<configurationSectionGroup name="SampleConfigurationGroup">
<configurationSectionProperties>
<configurationSectionProperty>
<containedConfigurationSection>
<configurationSectionMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/SampleConfigurationSection" />
</containedConfigurationSection>
</configurationSectionProperty>
</configurationSectionProperties>
</configurationSectionGroup>
</configurationElements>
<propertyValidators>
<validators>
<stringValidator name="StringValidator1" />
</validators>
</propertyValidators>
<customTypeConverters>
<converter name="CustomTypeTypeConverter">
<type>
<externalTypeMoniker name="/ab30db0b-dc8b-4ce7-8183-7764183593ef/CustomType" />
</type>
</converter>
</customTypeConverters>
</configurationSectionModel>