Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Will there be only one copy of Statis member for a class irrespective of the class instances in .net?

$
0
0

Hi,

I have doubt. Only one copy of static member exists even though there are many instances of that class ?

I have a class which is having a static member of delegate type. At runtime I will be creating many instances of this class. In this class constructor I will instantiating this static member with an instance method. whether every instance of a class will hold separate copy of this static member or there will be only one static member that every instance will refer?

Thanks in advance.

Regards,

Mohan.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>