Imported Upstream version 4.6.0.150

Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-23 13:20:38 +00:00
parent 02ac915603
commit b95516a3dd
239 changed files with 4096 additions and 1544 deletions

View File

@@ -471,7 +471,62 @@ namespace System.Text.RegularExpressions {
}
}
}
#if NETSTANDARD
protected IDictionary Caps
{
get
{
var dict = new Dictionary<int, int>();
foreach (int key in caps.Keys)
{
dict.Add (key, (int)caps[key]);
}
return dict;
}
set
{
if (value == null)
throw new ArgumentNullException("value");
caps = new Hashtable (value.Count);
foreach (DictionaryEntry entry in value)
{
caps[(int)entry.Key] = (int)entry.Value;
}
}
}
protected IDictionary CapNames
{
get
{
var dict = new Dictionary<string, int>();
foreach (string key in capnames.Keys)
{
dict.Add (key, (int)capnames[key]);
}
return dict;
}
set
{
if (value == null)
throw new ArgumentNullException("value");
capnames = new Hashtable (value.Count);
foreach (DictionaryEntry entry in value)
{
capnames[(string)entry.Key] = (int)entry.Value;
}
}
}
#endif
/// <devdoc>
/// <para>
/// Returns the options passed into the constructor