Jump to content

Erro Enumerator

Recommended Posts


Error 1 Use of unassigned local variable 'enumerator'


Olá à todos, boa tarde! Estou tentando desenvolver um auto post em grupos de facebook, porém estou tendo esse erro com uma source que um amigo me enviou...Aparece esse erro listado à cima em negrito nessa parte

                        IEnumerator enumerator;
                        if (enumerator is IDisposable)
                            (enumerator as IDisposable).Dispose();


se eu retiro essa parte aparece uns 20 erros a mais.. se alguém puder me ajudar, fico grato. Obrigado à todos!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.