Southperry.net
Spot the bug #2 - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14)
+--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58)
+--- Thread: Spot the bug #2 (/showthread.php?tid=27631)



Spot the bug #2 - Spaz - 2010-07-14

Code:
// Add the arguments for all switchable files
foreach ( SwitchableFile switchableFile in Settings.SwitchableFiles.Values )
{
    optionSet.Add( string.Format( "{0}", switchableFile.WhetherToSwitchArg ),
        string.Format( "Switch {0}", switchableFile.NormalFile ),
        argExistence => Settings.SwitchFile[ switchableFile.Name ] = ( argExistence != null ) );
    
    ...
}

Only C# gurus will get this one.

 Hint 1

 Hint 2

 answer



Spot the bug #2 - Random_Overlord - 2010-07-14

Spaz Wrote:
Code:
// Add the arguments for all switchable files
foreach ( SwitchableFile switchableFile in Settings.SwitchableFiles.Values )
{
    optionSet.Add( string.Format( "{0}", switchableFile.WhetherToSwitchArg ),
        string.Format( "Switch {0}", switchableFile.NormalFile ),
        argExistence => Settings.SwitchFile[ switchableFile.Name ] = ( argExistence != null ) );
    
    ...
}

Only C# gurus will get this one.

 Hint 1

 Hint 2

 answer


I need to read up on my C++ again, cuz thats was like a tongue twister in the brain. Tongue


Spot the bug #2 - Spaz - 2010-07-14

Random_Overlord Wrote:I need to read up on my C++ again, cuz thats was like a tongue twister in the brain. Tongue
Errr, it's C#, not C++.