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); }
public int AddClass(ASClass @class, ASInstance instance, bool recycle = true) { AddValue(Classes, @class, recycle); return(AddValue(Instances, instance, recycle)); }