zompinc / sync-method-generator

Generates a synchronized version of an async method
MIT License
48 stars 4 forks source link

Interface's static method support #82

Closed lsoft closed 2 months ago

lsoft commented 2 months ago

Looks like they are not supported.

image

    internal class Program
    {
        static void Main(string[] args)
        {
            IMyInterface.Do();
        }
    }

    //public partial interface IMyInterface
    //{
    //    static void Do()
    //    {
    //    }
    //}

    public partial interface IMyInterface
    {
        [Zomp.SyncMethodGenerator.CreateSyncVersion]
        static async Task DoAsync()
        {
        }
    }

Thank you for your work, Victor, we are using your generator with great success!

virzak commented 2 months ago

we are using your generator with great success

Thank you for saying that. Makes me really happy!

The issue is resolved in 1.4.8