Qyoto.QLocale.ToUShort C# (CSharp) Method

ToUShort() public method

public ToUShort ( string s, bool &ok ) : ushort
s string
ok bool
return ushort
        public ushort ToUShort(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("toUShort$$", "toUShort(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_ushort;
        }

Same methods

QLocale::ToUShort ( string s ) : ushort
QLocale::ToUShort ( string s, bool &ok, int arg3 ) : ushort