Bike.Interpreter.Builtin.BikeObject.IsPrototypeOf C# (CSharp) Method

IsPrototypeOf() public method

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