We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f84c8 commit b122e02Copy full SHA for b122e02
src/Pixel.Automation.UIA.Components/WinControlIdentity.cs
@@ -60,7 +60,7 @@ public class WinControlIdentity : ControlIdentity
60
61
[DataMember(Order = 310)]
62
[Category("Supported Patterns")]
63
- public List<string> SupportedPatterns { get; set; }
+ public List<string> SupportedPatterns { get; set; } = new();
64
65
66
#region required during scraping
@@ -84,7 +84,7 @@ public int ProcessId
84
85
public WinControlIdentity() : base()
86
{
87
- this.SupportedPatterns = new List<string>();
+
88
}
89
90
@@ -114,6 +114,7 @@ public override object Clone()
114
Next = this.Next?.Clone() as WinControlIdentity
115
116
};
117
+ clone.SupportedPatterns.AddRange(this.SupportedPatterns);
118
return clone;
119
120
0 commit comments