Esempio n. 1
0
        /// <summary>see merge(CoreMap base, CoreMap toBeMerged)</summary>
        public static CoreLabel Merge(CoreLabel @base, CoreLabel toBeMerged)
        {
            //(variables)
            CoreLabel rtn = new CoreLabel(@base.Size());

            //(copy base)
            foreach (Type key in @base.KeySet())
            {
                rtn.Set(key, @base.Get(key));
            }
            //(merge)
            foreach (Type key_1 in toBeMerged.KeySet())
            {
                rtn.Set(key_1, toBeMerged.Get(key_1));
            }
            //(return)
            return(rtn);
        }