示例#1
0
        private ASClass ReadClass(int index)
        {
            var @class = new ASClass(this, _input);

            @class.InstanceIndex = index;

            List <ASClass> classes      = null;
            string         qualifedName = @class.Instance.QName.Name;

            if (!_classCache.TryGetValue(qualifedName, out classes))
            {
                classes = new List <ASClass>();
                _classCache[qualifedName] = classes;
            }

            classes.Add(@class);
            return(@class);
        }
示例#2
0
 public int AddClass(ASClass @class, ASInstance instance, bool recycle = true)
 {
     AddValue(Classes, @class, recycle);
     return(AddValue(Instances, instance, recycle));
 }