Skip to content

Commit 896c0ae

Browse files
michael-hawkerArlodotexe
authored andcommitted
Use discard for unneeded output to TryParse in ACV sample
1 parent e82c702 commit 896c0ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/Collections/samples/AdvancedCollectionViewSample.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ private void Setup()
4747

4848
// right list
4949
var acv = new AdvancedCollectionView(Original);
50-
int nul;
51-
acv.Filter = x => !int.TryParse(((Employee)x).Name, out nul);
50+
acv.Filter = x => !int.TryParse(((Employee)x).Name, out _);
5251
acv.SortDescriptions.Add(new SortDescription("Name", SortDirection.Ascending));
5352

5453
CollectionView = acv;

0 commit comments

Comments
 (0)