Exemple #1
0
        static void Main(string[] args)
        {
            StructureElement entry = new StructureElement()
            {
                symbol = new SymbolSimple()
                {
                    type = typeof(Int32),
                    metadata = new Metadata() { Name = "Int32" }
                },
                validator = new Interfacable.DictValidator().Add(new Interfacable.SimpleDictEntry() { allowed = 4 }),
                metadata = new Metadata() { Name = "test", Description = "Simple test"}
            };

            Structure structure = new Structure().Add(entry);
        }
Exemple #2
0
 /// <summary>
 /// Adds entry to the structure
 /// </summary>
 /// <param name="structureEntry">Entry to add</param>
 /// <returns>this</returns>
 public Structure Add(StructureElement structureEntry)
 {
     structureEntries.Add(structureEntry);
     return this;
 }