Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Tuesday, October 23, 2012

C# Performance tips part1


IQueryable vs IEnumerable vs IList



What is performance implications of IQueryable vs IEnumerable

C# Performance tips part1



All below topics are explained/compared using .net CLR profiler
1) String Vs StrinBuilder ,string.format
2) ArrayList vs List
3) List vs Dictionary
4) How to write Optimized code in C#.
5) Explained Garbage collector Generations 0,1,2.

C# Disposable pattern, Dispose Vs Finalize



Discussed below topics
1) What is Finalize and how to create ?
2) What is Destructor and purpose?
3) IDisposable interface
3) Using block
4) What is GC.Collect?
5) Why and when to use GC.suppressfinalize
6) Dispose Vs Finalize
7) GC Performance differences between Dispose or Finalize.

C# Keywords & Interview Questions