Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created July 15, 2011 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qpfiffer/1085037 to your computer and use it in GitHub Desktop.
Save qpfiffer/1085037 to your computer and use it in GitHub Desktop.
Ode to .NET:
/* This: */
if (((System::Collections::IList ^)filterData->OpenSubKey("day_filter")->GetSubKeyNames())->Contains("days") == true) {
...
}
/* Or this: */
using System::Collections;
...
array<System::String ^> subKeys = filterData->OpenSubKey("day_filter")->GetSubKeyNames();
if ((IList ^)subKeys)->Contains->("days")) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment