/* goodG2B() - use goodsource and badsink */
        private static void GoodG2B()
        {
            string data;

            /* FIX: Use a hardcoded int as a string */
            data = "5";
            Container dataContainer = new Container();

            dataContainer.containerOne = data;
            CWE606_Unchecked_Loop_Condition__Database_67b.GoodG2BSink(dataContainer);
        }
        /* goodB2G() - use badsource and goodsink */
        private static void GoodB2G()
        {
            string data;

            data = ""; /* Initialize data */
            /* Read data from a database */
            {
                try
                {
                    /* setup the connection */
                    using (SqlConnection connection = IO.GetDBConnection())
                    {
                        connection.Open();
                        /* prepare and execute a (hardcoded) query */
                        using (SqlCommand command = new SqlCommand(null, connection))
                        {
                            command.CommandText = "select name from users where id=0";
                            command.Prepare();
                            using (SqlDataReader dr = command.ExecuteReader())
                            {
                                /* POTENTIAL FLAW: Read data from a database query SqlDataReader */
                                data = dr.GetString(1);
                            }
                        }
                    }
                }
                catch (SqlException exceptSql)
                {
                    IO.Logger.Log(NLog.LogLevel.Warn, exceptSql, "Error with SQL statement");
                }
            }
            Container dataContainer = new Container();

            dataContainer.containerOne = data;
            CWE606_Unchecked_Loop_Condition__Database_67b.GoodB2GSink(dataContainer);
        }