Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spot the bug #2
#1
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
Reply
#2
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
Reply
#3
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++.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)