示例#1
0
 public bool ContainsInterface(string qualifiedName)
 {
     if (Super.Name != "Object")
     {
         ASInstance superInstance = ABC.GetFirstInstance(Super.Name);
         if (superInstance.ContainsInterface(qualifiedName))
         {
             return(true);
         }
     }
     foreach (ASMultiname @interface in GetInterfaces())
     {
         if (@interface.Name != qualifiedName)
         {
             continue;
         }
         return(true);
     }
     return(false);
 }
示例#2
0
 public int AddClass(ASClass @class, ASInstance instance, bool recycle = true)
 {
     AddValue(Classes, @class, recycle);
     return(AddValue(Instances, instance, recycle));
 }