Modern C# means .NET 4.6<p>For example GC.TryStartNoGCRegion<p><a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dn906201%28v=vs.110%29.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dn906201%28v=vs.110...</a><p>SafeBuffers<p><a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;library&#x2F;system.runtime.interopservices.safebuffer%28v=vs.100%29.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;library&#x2F;system.runtime.interopser...</a><p>Or using array segments<p><a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;9cc4bx8k(v=vs.110).aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;9cc4bx8k(v=vs.110)....</a><p>Unity has made a lot to spread C# love among game devs, but it also gave a bad reputation to those unaware how .NET really is.