<p>What are the most common memory optimizations in csharp, dotnet 2.0.  Wanted to see if there common things that people may not be doing by default in winform app</p>

[{'answer_id': 60693, 'author': 'Nick', 'author_id': 1490, 'author_profile': 'https://Stackoverflow.com/users/1490', 'pm_score': 4, 'selected': True, 'text': '<ul>\n<li>use structs for small wrapper objects to avoid heap fragmentation</li>\n<li>think carefully about object lifetimes, especially for large objects so they do not end up on the LOH unless you intend them to</li>\n<li>think about allocations inside of a loop</li>\n<li>make sure dynamically sized array will be of reasonable size, otherwise partition the problem</li>\n</ul>\n'}, {'answer_id': 60713, 'author': 'hwiechers', 'author_id': 5883, 'author_profile': 'https://Stackoverflow.com/users/5883', 'pm_score': 2, 'selected': False, 'text': "<p>Use StringBuilder instead of directly modifying a string if you're performing many modifications to the same string.</p>\n"}, {'answer_id': 60726, 'author': 'Roger Ween', 'author_id': 6143, 'author_profile': 'https://Stackoverflow.com/users/6143', 'pm_score': 0, 'selected': False, 'text': '<p>Sealing as much classes as possible should also help. AFAIK this is one trick that SmartAssembly uses to reduce memory consumption.</p>\n'}]
['https://Stackoverflow.com/questions/60652', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4653/']