diff --git a/Ix.NET/Source/Directory.Build.props b/Ix.NET/Source/Directory.Build.props index 5f00668828..e0146a53a7 100644 --- a/Ix.NET/Source/Directory.Build.props +++ b/Ix.NET/Source/Directory.Build.props @@ -4,7 +4,7 @@ 2.12 true .NET Foundation and Contributors - https://raw.githubusercontent.com/dotnet/reactive/0f837d11385cfaf575861ccc5a5fbcafb22d888f/Rx.NET/Resources/Artwork/Logo.png + Logo.png https://github.com/dotnet/reactive MIT true @@ -29,6 +29,10 @@ + + + + diff --git a/Ix.NET/Source/Ix.NET.sln b/Ix.NET/Source/Ix.NET.sln index b06fded1ad..e95c5ad13c 100644 --- a/Ix.NET/Source/Ix.NET.sln +++ b/Ix.NET/Source/Ix.NET.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28606.126 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32131.331 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{87534290-A7A6-47A4-9A3A-D0D21A9AD1D4}" EndProject @@ -13,7 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Directory.build.props = Directory.build.props Directory.build.targets = Directory.build.targets global.json = global.json - NuGet.Config = NuGet.Config version.json = version.json EndProjectSection EndProject @@ -62,7 +61,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmarks.System.Interacti EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Linq.Async.Ref", "refs\System.Linq.Async.Ref\System.Linq.Async.Ref.csproj", "{1754B36C-D0DB-4E5D-8C30-1F116046DC0F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Linq.Async.SourceGenerator", "System.Linq.Async.SourceGenerator\System.Linq.Async.SourceGenerator.csproj", "{5C26D649-5ED4-49EE-AFBD-8FA8F12C4AE4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Linq.Async.SourceGenerator", "System.Linq.Async.SourceGenerator\System.Linq.Async.SourceGenerator.csproj", "{5C26D649-5ED4-49EE-AFBD-8FA8F12C4AE4}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs index 3f7ae40e53..97046f87ce 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Maybe.cs @@ -19,7 +19,7 @@ public Maybe(T value) public bool Equals(Maybe other) => HasValue == other.HasValue && EqualityComparer.Default.Equals(Value, other.Value); public override bool Equals(object? other) => other is Maybe m && Equals(m); - public override int GetHashCode() => HasValue ? EqualityComparer.Default.GetHashCode(Value) : 0; + public override int GetHashCode() => HasValue ? EqualityComparer.Default.GetHashCode(Value!) : 0; public static bool operator ==(Maybe first, Maybe second) => first.Equals(second); public static bool operator !=(Maybe first, Maybe second) => !first.Equals(second); diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleLinkedNode.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleLinkedNode.cs index 2d2c310a28..dc7478eecb 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleLinkedNode.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleLinkedNode.cs @@ -58,7 +58,7 @@ private SingleLinkedNode(SingleLinkedNode linked, TSource item) public int GetCount() { var count = 0; - for (SingleLinkedNode? node = this; node != null; node = node.Linked) + for (var node = this; node != null; node = node.Linked) { count++; } @@ -86,10 +86,10 @@ public SingleLinkedNode GetNode(int index) { Debug.Assert(index >= 0 && index < GetCount()); - SingleLinkedNode node = this; + var node = this; for (; index > 0; index--) { - node = node.Linked!; + node = node!.Linked!; Debug.Assert(node != null); } @@ -106,7 +106,7 @@ private TSource[] ToArray(int count) var array = new TSource[count]; var index = count; - for (SingleLinkedNode? node = this; node != null; node = node.Linked) + for (var node = this; node != null; node = node.Linked) { --index; array[index] = node.Item; diff --git a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs index a9cc2d5f9d..6fa01ebba3 100644 --- a/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs +++ b/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs @@ -85,7 +85,7 @@ protected override async ValueTask MoveNextCore() { var completed = Volatile.Read(ref _completed); - if (_values!.TryDequeue(out _current)) + if (_values!.TryDequeue(out _current!)) { return true; }