Created
October 24, 2012 21:43
-
-
Save sniffdk/3949104 to your computer and use it in GitHub Desktop.
Legacy strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int LastIndexOf(string value) | |
{ | |
return this.LastIndexOf(value, this.Length - 1, this.Length, string.LegacyMode ? StringComparison.Ordinal : StringComparison.CurrentCulture); | |
} | |
// What is LegacyMode ? | |
internal static bool LegacyMode | |
{ | |
get | |
{ | |
return CompatibilitySwitches.IsAppEarlierThanSilverlight4; | |
} | |
} | |
// Ohh alright, I see .. | |
public static bool IsAppEarlierThanSilverlight4 | |
{ | |
[TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")] get | |
{ | |
return false; | |
} | |
} | |
// wait.... WAT?! Did I miss something .. ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment