diff --git a/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs b/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs index 76c6927a1..192d141cc 100644 --- a/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs +++ b/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs @@ -650,8 +650,6 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms return base.VisitIdentifier(identifier); } - - internal static bool IsBackingFieldOfAutomaticProperty(IField field, out IProperty property) { property = null; @@ -673,7 +671,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms /// /// static readonly System.Text.RegularExpressions.Regex automaticPropertyBackingFieldNameRegex - = new System.Text.RegularExpressions.Regex(@"^(<(?\w+)>k__BackingField|_(?\w+))$"); + = new System.Text.RegularExpressions.Regex(@"^(<(?.+)>k__BackingField|_(?.+))$"); static bool NameCouldBeBackingFieldOfAutomaticProperty(string name, out string propertyName) {