Microsoft.JScript.Class.ImplementsInterface C# (CSharp) Method

ImplementsInterface() private method

private ImplementsInterface ( IReflect iface ) : bool
iface IReflect
return bool
      internal bool ImplementsInterface(IReflect iface){
        foreach (TypeExpression t in this.interfaces){
          IReflect ir = t.ToIReflect();
          if (ir == iface) return true;
          if (ir is ClassScope && ((ClassScope)ir).ImplementsInterface(iface)) return true;
          if (ir is Type && iface is Type && ((Type)iface).IsAssignableFrom((Type)ir)) return true;
        }
        return false;
      }