Exemple #1
0
        public HandleTemplateMap BuildTemplateMap()
        {
            var handleTemplates = from h in HandleMap
                                  select Transform(h);

            var retVal = new HandleTemplateMap( );

            foreach (var h in handleTemplates)
            {
                retVal.Add(h);
            }

            return(retVal);
        }
        public HandleTemplateMap BuildTemplateMap( )
        {
            var handleTemplates = from h in HandleMap
                                  select Transform(h);

            var retVal = new HandleTemplateMap( )
            {
                new LLVMErrorRefTemplate() // error ref is always present so just add it
            };

            foreach (var h in handleTemplates)
            {
                retVal.Add(h);
            }

            return(retVal);
        }