.net-internals Questions

1

Solved

While browsing through the code of PinnableObjectCache from mscorlib, I've encountered the following code: for (int i = 0; i < m_restockSize; i++) { // Make a new buffer. object newBuffer = m...
Amann asked 14/11, 2014 at 9:56

2

Solved

When I was looking at decompiled .NET assemblies to see some internals, I've noticed interesting StringBuilderCache class used by multiple framework's methods: internal static class StringBuilderC...
Breadstuff asked 17/11, 2013 at 11:0

3

Solved

While inspecting delegates in C# and .NET in general, I noticed some interesting facts: Creating a delegate in C# creates a class derived from MulticastDelegate with a constructor: .method publi...
Holbrook asked 14/3, 2010 at 20:57

3

Solved

I have discovered that if i run following lines of code. int i = 7; i.GetHashCode(); //where GetHashCode() is the derived //function from System.Object No boxing is done, but if i call i.GetTyp...
Clay asked 1/2, 2010 at 19:14
1

© 2022 - 2024 — McMap. All rights reserved.