将C#代码更改为二进制代码 [英] Change C# code to Binary code

查看:91
本文介绍了将C#代码更改为二进制代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在我的程序中编写二进制代码,例如if我不想写if而我想写二进制代码我该怎么办呢? br />
i知道如何更改为二进制文件,但在C#中它不起作用

它有没有办法编写这样的代码?

Hi I want to write binary code in my program for example for "if" i don't want to write "if" and i want to write it binary code what should i do to it change?
i know how to change to binary but in C# it doesn't work
does it have any way to write code like this?

推荐答案

你不用C#编写二进制代码 - 你可以编写IL代码并将其嵌入C#: https://visualstudiogallery.msdn.microsoft.com/44034a7b-143d-4b51-b7bc-99aa656ba137 [ ^ ],但这是你可以去的,因为最终的二进制版本没有产生直到代码运行并且JIT编译器得到它的手。



为什么,为什么,你为什么要写入二进制呢?我一直在那里,不是那样,拿到了T恤。现代语言的一个主要优点是你不必再做了!这是缓慢,困难和维护问题。
You don't write binary code in C# - you can write IL code and embed that in you C#: https://visualstudiogallery.msdn.microsoft.com/44034a7b-143d-4b51-b7bc-99aa656ba137[^], but that's about as far as you can go, as the final "binary" version isn't produced until the code is run and the JIT compiler gets it's hands on it.

And why, oh why would you want to "write in binary" anyway? I've been there, don't that, got the T shirt. And one of the major advantages of modern languages is that you don't have to do it again! It's slow, difficult and a maintenance headache.


这篇关于将C#代码更改为二进制代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆