AsyncGenerator
AsyncGenerator copied to clipboard
Generating async c# code using Roslyn
I've came up with following helper that simplifies the code that might be generated: ```csharp class AsyncHelper { public static Task CallAsync(Func func, CancellationToken cancellationToken = default) { if (cancellationToken.IsCancellationRequested)...
Bumps [System.Data.SqlClient](https://github.com/dotnet/corefx) from 4.8.1 to 4.8.6. Release notes Sourced from System.Data.SqlClient's releases. .NET Core 2.1.0 RC1 Release Notes Known Issues Download and Install Repos CoreCLR CoreFX Core-Setup CLI Commits See...
I think it could be possible to add support of out parameters via tuple returns ```csharp public bool TryDoSomething(string x, out X value) { } ``` => ```csharp public (bool,...
@maca88 https://github.com/nhibernate/nhibernate-core/pull/2147#issue-275171711 : > Currently, the async generator is generating separate fields for lock statements that contain an async invocation, which may cause troubles as two threads may simultaneously execute...
```csharp public bool AMethod() { return someSimpleCondition || AnotherMethod(); } ``` Now would be generated to: ```csharp public async Task AMethodAsync() { return someSimpleCondition || await AnotherMethodAsync(); } ``` Would...
``` interface IInterface { void SomeMethod(); } /* methodConversions: - conversion: ToAsync containingTypeName: IAsyncInterface */ interface IAsyncInterface : IInterface { } ``` The desired behavior is that the async counterparts...
```csharp class A { public abstract void SomeMethod(); } ``` => ```csharp partial class A { // Pseudo code. All rules shall apply public virtual async Task SomeMethodAsync() { SomeMethod();...
The warnings could be added after the `` tag.
Consider the following code in method that needs async counterpart: ```C# CriteriaLoader[] loaders = ... var loadedLists = loaders.Select(l => l.List(this)).ToList(); ``` I expect this part to be converted in...
Example: ``` public class MethodWithDelegate { public void Test() { Read(() => SimpleFile.Read()); } public void Read(Action action) { action(); SimpleFile.Read(); } } ``` **Desired result** ``` public partial class...