Exemple #1
0
 public ContextType(Context context)
     : base()
 {
     _context = context;
 }
Exemple #2
0
 public void Add(Context cont)
 {
     DataType t = new ContextType(cont); t.Parent = this; Add (t);
 }
Exemple #3
0
        void addContext(String type)
        {
            Context con = new Context(reader_, this);

            if(con.Id == null) return;

            if(con.ContextId != null)
            {
                if (contextMap_.ContainsKey(con.ContextId)) {
                    // add the context to the ordered list
                    Context oldcon = contextMap_[con.ContextId];
                    oldcon.Contexts.Add(con);
                }
            }

            // add the context to the serial list.
            contextMap_.Add(con.Id, con);
            contexts_.Add(con);

            // add this as a type to the type map
            //			typeMap_.Add(con.Id, new Function.Type(con, this));
            _types.Add(con);
        }