English 中文(简体)
C#
原标题:Unsafe code in C#
  • 时间:2010-07-03 22:03:26
  •  标签:
  • c#
  • unsafe

C#中不安全法典有哪些限制? 例如,如果我使用C或C++的话,我是否真的任意点击和算术?

最佳回答
问题回答

是的,这是所有可能的。 http://msdn.microsoft.com/en-us/library/a288474(v=VS.71).aspx“rel=“nofollow noreferer”>。 Unsafe Code Tutorial fromMSDN.

凡是说如何使用这种说法的人,都是一种可怕的想法:是,但出于某种原因。 最近,我不得不(首次)利用这一软件,通过第三方的APIC获得网络数据,该软件已退回<代码>。 页: 1

是的,你可以在你喜欢的地方提出一点点。

然而,由于你的方案在虚拟地址空间运行,你只能获得该空间中实际存在的记忆,即你可以不接触任何其他过程,而且你可以获取已经分配的记忆。

请查阅以下网页,以便了解更多信息:

http://msdn.microsoft.com/en-us/library/y31yhkeb.aspx

《安全法》规定,能够申报几乎任何原始变量(基本类型)的点数;你允许在点之间投放。 点算法基于点级的储存规模,因此,将计算后或计算后加到点子将按大小提高处理面。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签