Created
September 8, 2014 14:41
-
-
Save kgiszewski/9787d9384ec8af45a95a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myArchetype = new ArchetypeModel() | |
{ | |
Fieldsets = new List<ArchetypeFieldsetModel>() | |
{ | |
new ArchetypeFieldsetModel() | |
{ | |
Alias = "fs1", | |
Properties = new List<ArchetypePropertyModel>() | |
{ | |
new ArchetypePropertyModel() | |
{ | |
Alias = "prop1", | |
Value = "foo", | |
}, | |
new ArchetypePropertyModel() | |
{ | |
Alias = "prop2", | |
Value = "bar", | |
} | |
} | |
}, | |
new ArchetypeFieldsetModel() | |
{ | |
Alias = "fs2", | |
Properties = new List<ArchetypePropertyModel>() | |
{ | |
new ArchetypePropertyModel() | |
{ | |
Alias = "prop1", | |
Value = "foo", | |
}, | |
new ArchetypePropertyModel() | |
{ | |
Alias = "prop2", | |
Value = "bar", | |
} | |
} | |
} | |
} | |
}; | |
myArchetype.SerializeForPersistence(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment