예제 #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);
        }
예제 #2
0
파일: dglb.cs 프로젝트: offlinehacker/DGLB
 /// <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;
 }