Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

What is best use create object once or create when required.

$
0
0

Hello,

I am little bit confused.

ShopLogic sl = new ShopLogic();

What will be best use according to performence.

i need to create sl object once in a .CS file or create object again and again in different method.

Please guide me 


Viewing all articles
Browse latest Browse all 31927

Trending Articles



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