How to mark a .net assembly as safe?

后端 未结 4 637
名媛妹妹
名媛妹妹 2021-02-05 09:26

How do i mark as assembly as \"safe\"?

Alternatively, how do i have Visual Studio tell me when something in my assembly is not \"safe\"?


Sometimes you cann

4条回答
  •  清酒与你
    2021-02-05 09:57

    SQL in this case is looking for code that you've wrapped in an "unsafe" block. Here's an MSDN pointer to the unsafe keyword

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

提交回复
热议问题