Bike.Interpreter.Builtin.ErrorFactory.ResolvePrototype C# (CSharp) Method

ResolvePrototype() private static method

private static ResolvePrototype ( string objName ) : BikeObject
objName string
return BikeObject
        private static BikeObject ResolvePrototype(string objName)
        {
            var ns = (BikeObject) InterpretationContext.Instance.GlobalFrame.Resolve("Bike");
            if (ns.Exist(objName))
                return (BikeObject) ns.Resolve(objName);
            throw new InterpreterException("Cannot load core library");
        }