Bike.Interpreter.Builtin.BikeObject.IsPrototypeOf C# (CSharp) 메소드

IsPrototypeOf() 공개 메소드

public IsPrototypeOf ( BikeObject other ) : BikeBoolean
other BikeObject
리턴 BikeBoolean
        public BikeBoolean IsPrototypeOf(BikeObject other)
        {
            var prototype = other.Prototype;
            while (prototype != null && prototype != this)
                prototype = prototype.Prototype;
            return new BikeBoolean(prototype != null);
        }