diff options
Diffstat (limited to 'release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.RegularExpressions.md')
-rw-r--r-- | release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.RegularExpressions.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.RegularExpressions.md b/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.RegularExpressions.md new file mode 100644 index 00000000..8e404003 --- /dev/null +++ b/release-notes/7.0/preview/api-diff/rc1/Microsoft.NETCore.App/7.0-rc1_System.Text.RegularExpressions.md @@ -0,0 +1,44 @@ +# System.Text.RegularExpressions + +``` diff + namespace System.Text.RegularExpressions { ++ public sealed class GeneratedRegexAttribute : Attribute { ++ public GeneratedRegexAttribute([StringSyntaxAttribute("Regex")] string pattern); ++ public GeneratedRegexAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options); ++ public GeneratedRegexAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options, int matchTimeoutMilliseconds); ++ public GeneratedRegexAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options, int matchTimeoutMilliseconds, string cultureName); ++ public GeneratedRegexAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options, string cultureName); ++ public string CultureName { get; } ++ public int MatchTimeoutMilliseconds { get; } ++ public RegexOptions Options { get; } ++ public string Pattern { get; } ++ } + public class Regex : ISerializable { +- [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the RegexGeneratorAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname); ++ [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname); +- [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the RegexGeneratorAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes); ++ [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes); +- [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the RegexGeneratorAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes, string? resourceFile); ++ [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes, string? resourceFile); + } +- [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the RegexGeneratorAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- public class RegexCompilationInfo ++ [ObsoleteAttribute("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public class RegexCompilationInfo +- public sealed class RegexGeneratorAttribute : Attribute { +- public RegexGeneratorAttribute([StringSyntaxAttribute("Regex")] string pattern); +- public RegexGeneratorAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options); +- public RegexGeneratorAttribute([StringSyntaxAttribute("Regex", new object[]{ "options"})] string pattern, RegexOptions options, int matchTimeoutMilliseconds); +- public int MatchTimeoutMilliseconds { get; } +- public RegexOptions Options { get; } +- public string Pattern { get; } +- } + } +``` + |