IntroductionObject creation is always expensive. It is better to create object when it is actually needed to do so. Otherwise, unnecessary memory allocation on the heap will cause a memory load. Lazy
which is defined in the mscorlib assembly and belongs to System namespace, ensures that object is created only when it is needed. Using the codeConsider the below programstatic void Main(string[]
Tidak ada komentar:
Posting Komentar