36 lines
2.4 KiB
Markdown
36 lines
2.4 KiB
Markdown
# System.Text.RegularExpressions
|
|
|
|
``` diff
|
|
namespace System.Text.RegularExpressions {
|
|
- public class GroupCollection : ICollection, ICollection<Group>, IEnumerable, IEnumerable<Group>, IList, IList<Group>, IReadOnlyCollection<Group>, IReadOnlyList<Group> {
|
|
+ public class GroupCollection : ICollection, ICollection<Group>, IEnumerable, IEnumerable<Group>, IEnumerable<KeyValuePair<string, Group>>, IList, IList<Group>, IReadOnlyCollection<Group>, IReadOnlyCollection<KeyValuePair<string, Group>>, IReadOnlyDictionary<string, Group>, IReadOnlyList<Group> {
|
|
+ public IEnumerable<string> Keys { get; }
|
|
+ public IEnumerable<Group> Values { get; }
|
|
+ public bool ContainsKey(string key);
|
|
+ IEnumerator<KeyValuePair<string, Group>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Text.RegularExpressions.Group>>.GetEnumerator();
|
|
+ public bool TryGetValue(string key, out Group value);
|
|
}
|
|
public class Regex : ISerializable {
|
|
+ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname);
|
|
+ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes);
|
|
+ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, string resourceFile);
|
|
- protected bool UseOptionR();
|
|
+ protected internal bool UseOptionR();
|
|
}
|
|
+ public class RegexCompilationInfo {
|
|
+ public RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic);
|
|
+ public RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic, TimeSpan matchTimeout);
|
|
+ public bool IsPublic { get; set; }
|
|
+ public TimeSpan MatchTimeout { get; set; }
|
|
+ public string Name { get; set; }
|
|
+ public string Namespace { get; set; }
|
|
+ public RegexOptions Options { get; set; }
|
|
+ public string Pattern { get; set; }
|
|
+ }
|
|
public class RegexMatchTimeoutException : TimeoutException, ISerializable {
|
|
- void System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context);
|
|
+ void System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo info, StreamingContext context);
|
|
}
|
|
}
|
|
```
|
|
|