Does Blazor server need dispose?

Cenk 956 Reputation points
2022-07-14T11:49:51.007+00:00

Hi there,

I am new to Blazor server, working on a project. I am reading articles and best practices about Blazor. I wonder if I have to use dispose on blazor pages?

Thank you in advance.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,415 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 57,806 Reputation points
    2022-07-15T15:42:49.03+00:00

    in general, if the class implements IDisposable, you should create with a using statement.

    0 comments No comments