Пример #1
0
        private IodineObject format(VirtualMachine vm, IodineObject self, IodineObject[] args)
        {
            string          format    = this.Value;
            IodineFormatter formatter = new IodineFormatter();

            return(new IodineString(formatter.Format(vm, format, args)));
        }
Пример #2
0
            private IodineObject Format(VirtualMachine vm, IodineObject self, IodineObject[] args)
            {
                var thisObj = self as IodineString;

                if (thisObj == null)
                {
                    vm.RaiseException(new IodineFunctionInvocationException());
                    return(null);
                }

                string format    = thisObj.Value;
                var    formatter = new IodineFormatter();

                return(new IodineString(formatter.Format(vm, format, args)));
            }
Пример #3
0
		private IodineObject format (VirtualMachine vm, IodineObject self, IodineObject[] args)
		{
			string format = this.Value;
			IodineFormatter formatter = new IodineFormatter ();
			return new IodineString (formatter.Format (vm, format, args));
		}