Exemplo n.º 1
0
        public TdrError.ErrorType construct(long selector)
        {
            TdrError.ErrorType     result = TdrError.ErrorType.TDR_NO_ERROR;
            tsf4g_csharp_interface tsf4g_csharp_interface = this.select(selector);

            if (tsf4g_csharp_interface != null)
            {
                return(tsf4g_csharp_interface.construct());
            }
            if (selector == 0L)
            {
                this.iNilCmd = 0;
            }
            else if (selector == 1L)
            {
                if (this.szStrCmd == null)
                {
                    this.szStrCmd = new byte[64];
                }
            }
            else if (selector == 2L)
            {
                this.iIntCmd = 0;
            }
            return(result);
        }
Exemplo n.º 2
0
        public TdrError.ErrorType construct(long selector)
        {
            TdrError.ErrorType     type       = TdrError.ErrorType.TDR_NO_ERROR;
            tsf4g_csharp_interface _interface = this.select(selector);

            if (_interface != null)
            {
                return(_interface.construct());
            }
            if (selector == 0)
            {
                this.iNilCmd = 0;
                return(type);
            }
            if (selector == 1L)
            {
                if (this.szStrCmd == null)
                {
                    this.szStrCmd = new byte[0x40];
                }
                return(type);
            }
            if (selector == 2L)
            {
                this.iIntCmd = 0;
            }
            return(type);
        }