Example #1
0
        internal TypeArgumentBase FindAfterId(string id)
        {
            var ret = this.FirstOrDefault(it => it.id == id);

            if (ret == null)
            {
                ret = BlocklyTypeOdata.CreateValue(id);
                this.Add(ret);
            }
            return(ret);
        }
        internal TypeArgumentBase FindAfterId(string id)
        {
            var ret = this.FirstOrDefault(it => it.id == id);

            if (ret == null && id != null)
            {
                var lastId = id.Split('.', StringSplitOptions.RemoveEmptyEntries).Last();
                ret = this.FirstOrDefault(it => it.id == id);
            }
            if (ret == null)
            {
                ret = BlocklyTypeOdata.CreateValue(id);
                this.Add(ret);
            }
            return(ret);
        }