PasswordGenerator icon indicating copy to clipboard operation
PasswordGenerator copied to clipboard

Can we have IDisposible ?

Open gbthakkar opened this issue 3 years ago • 2 comments

Hi, Can we have IDisposible with this public class Password : IPassword

so it can use used with "using" pattern. ??

gbthakkar avatar Apr 23 '22 13:04 gbthakkar

If there is actually nothing to dispose, why would you want an IDisposable pattern?

UweKeim avatar Jun 18 '22 11:06 UweKeim

Hi,

Thank you for your response. I am using this in DI as transient and so thinking if it has an IDispose pattern, the object can be cleaned.

And in situations like creating objects manually at different places, we can clean after generating the password.

Or maybe we don't have to worry about memory leakage.

Regards,

Gaurang Thakkar

On Sat, Jun 18, 2022 at 5:07 PM Uwe Keim @.***> wrote:

If there is actually nothing to dispose, why would you want a IDisposable pattern?

— Reply to this email directly, view it on GitHub https://github.com/prjseal/PasswordGenerator/issues/22#issuecomment-1159449150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJOILTVOPUKURAEENBYVQQLVPWYGPANCNFSM5UEV7FJQ . You are receiving this because you authored the thread.Message ID: @.***>

gbthakkar avatar Jun 18 '22 12:06 gbthakkar