Aberratio-Code: De lo peorcito que he visto en mi vida

Atentos al fragmento, porque no tiene desperdicio.

  /*Dado que los flags son un int, almacenamos en un array en binario los flags*/
        private void _convertIntToArray(int number)
        {
            string binary = Convert.ToString(number, 2);
            int cont = binary.Length - 1;
            for (int i = 3; i >= 0; i--)
            {
                try
                {
                    sflags[i] = binary[cont];
                }
                catch (Exception)
                {
                    sflags[i] = '0';
                }
                cont--;
            }
        }

Aberración

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s