Kimono.KDateValidator.Validate C# (CSharp) Method

Validate() private method

private Validate ( StringBuilder text, int &e ) : QValidator.State
text StringBuilder
e int
return QValidator.State
        public override QValidator.State Validate(StringBuilder text, ref int e)
        {
            StackItem[] stack = new StackItem[3];
            #if DEBUG
            stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(text);
            #else
            stack[1].s_class = (IntPtr) GCHandle.Alloc(text);
            #endif
            stack[2].s_int = e;
            interceptor.Invoke("validate$$", "validate(QString&, int&) const", stack);
            #if DEBUG
            DebugGCHandle.Free((GCHandle) stack[1].s_class);
            #else
            ((GCHandle) stack[1].s_class).Free();
            #endif
            e = stack[2].s_int;
            return (QValidator.State) Enum.ToObject(typeof(QValidator.State), stack[0].s_int);
        }