Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Pinned
|
| Definition
| Normally, memory blocks are moved by the Common Language Runtime (CLR) at will—as when garbage collecting. A pinned block of memory has been marked as unmovable. Pinning is necessary; so, that unmanaged code can use managed pointer types without having the data moved unexpectedly. For example, pointers for passing buffer references to Win32 API functions would be invalid if the buffer were relocated in memory without the knowledge of the Win32 API.
|
| See also
|
|
| This C# Online.NET definition is from the Glossary of .NET / C# Terms.
|