Skip to content

Commit 9875fbd

Browse files
committed
Merge branch 'main' into release
2 parents ba99109 + 9424c75 commit 9875fbd

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
shell: pwsh
4141
run: |
4242
$doc = [XML](Get-Content 'Source\Directory.Build.props')
43-
echo "::set-output name=version::$($doc.Project.PropertyGroup.Version)"
43+
echo "version=$($doc.Project.PropertyGroup.Version) >> $GITHUB_OUTPUT"
4444
- name: Install dependencies
4545
run: dotnet restore ReactiveProperty.sln
4646
- name: Build

Source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<RootNamespace>Reactive.Bindings</RootNamespace>
4-
<Version>9.3.1</Version>
4+
<Version>9.3.2</Version>
55
<Authors>neuecc xin9le okazuki</Authors>
66
<PackageProjectUrl>https://github.com/runceel/ReactiveProperty</PackageProjectUrl>
77
<PackageTags>rx mvvm async rx-main reactive</PackageTags>

Source/ReactiveProperty.NETStandard/Helpers/FilteredReadOnlyObservableCollection.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,16 @@ public void Dispose()
351351
CollectionChanged -= Source_CollectionChanged;
352352
}
353353

354-
private int FindNearIndex(int position) => IndexList.Take(position).Reverse().FirstOrDefault(x => x != null) ?? -1;
354+
private int FindNearIndex(int position)
355+
{
356+
for (int i = position; i >= 0; i--)
357+
{
358+
var value = IndexList[i];
359+
if (value != null) return value.Value;
360+
}
361+
362+
return -1;
363+
}
355364

356365
private void AppearNewItem(int index)
357366
{

0 commit comments

Comments
 (0)