Qyoto.QLocale.ToShort C# (CSharp) Method

ToShort() public method

public ToShort ( string s, bool &ok ) : short
s string
ok bool
return short
        public short ToShort(string s, ref bool ok)
        {
            StackItem[] stack = new StackItem[3];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(s);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(s);
            #endif
            stack[2].s_bool = ok;
            interceptor.Invoke("toShort$$", "toShort(const QString&, bool*) const", stack);
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[1].s_class);
            #else
            ((GCHandle) stack[1].s_class).Free();
            #endif
            ok = stack[2].s_bool;
            return stack[0].s_short;
        }

Same methods

QLocale::ToShort ( string s ) : short
QLocale::ToShort ( string s, bool &ok, int arg3 ) : short