开发者

What does this mean ~method( ){ } [duplicate]

开发者 https://www.devze.com 2023-03-21 11:16 出处:网络
This question already has answers here: Closed 11 years ago. Possible D开发者_JAVA技巧uplicate: What does the tilde (~) mean in C#?
This question already has answers here: Closed 11 years ago.

Possible D开发者_JAVA技巧uplicate:

What does the tilde (~) mean in C#?

What is the meaing of ~ before a method?

I saw this like here:

    ~myDirect3dClass() 
    { 

    }


That's the destructor of a class, aka. the Finalizer.


That is a destructor.


That is a Destructor method of a class. Destructors are used to destruct instances of classes.

0

精彩评论

暂无评论...
验证码 换一张
取 消