当前位置: 首页 > news >正文

C# 查看IL代码

https://blog.csdn.net/susan19890313/article/details/6949685
https://cloud.tencent.com/developer/article/1335491
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes?redirectedfrom=MSDN&view=netframework-4.8#fields
IL指令链接

第一种使用方式:
找到ildasm.exe工具:
在这里插入图片描述
在这里插入图片描述

打开要看的exe文件:

在这里插入图片描述
在这里插入图片描述
Ldloc——Loads the local variable at a specific index onto the evaluation stack.
Stloc——Pops the current value from the top of the evaluation stack and stores it in a the local variable list at a specified index.
st——store,loc——local

在这里插入图片描述
左边Student是class
右边Student是struct

在这里插入图片描述
在这里插入图片描述

class Student //如果是struct,则为上面的那个图
{
    public int a;
}
class Program
{
    static void Main(string[] args)
    {
        Student s = new Student();
        List<Student> list = new List<Student>();
        list.Add(s);
        Console.ReadKey();
    }
}

相关文章:

  • MySQL事务锁问题-Lock wait timeout exceeded
  • .Net Memory Profiler的使用举例
  • node_js学习笔记 03(require module exports)...
  • 为什么不能单独修改unity transform的position的x
  • unity性能测试工具——待完成
  • 修改linux的默认语言
  • unity的优化知识点
  • juypter4.4.0 自动补全
  • unity Job System
  • unity Gpu Instance
  • 通过配置JVM参数解决生成日志存在乱码问题
  • unity Graphics的一些方法介绍
  • CodeForces 1151B Dima and a Bad XOR
  • unity Stopwatch
  • unity 烘焙参数的设置
  • Apache Zeppelin在Apache Trafodion上的可视化
  • ECMAScript6(0):ES6简明参考手册
  • Java程序员幽默爆笑锦集
  • leetcode388. Longest Absolute File Path
  • Linux下的乱码问题
  • php中curl和soap方式请求服务超时问题
  • PyCharm搭建GO开发环境(GO语言学习第1课)
  • Python 基础起步 (十) 什么叫函数?
  • Python打包系统简单入门
  • Sublime text 3 3103 注册码
  • 二维平面内的碰撞检测【一】
  • 分享几个不错的工具
  • 回流、重绘及其优化
  • 理解IaaS, PaaS, SaaS等云模型 (Cloud Models)
  • 前端
  • 前端自动化解决方案
  • 入门级的git使用指北
  • 事件委托的小应用
  • 为视图添加丝滑的水波纹
  • 远离DoS攻击 Windows Server 2016发布DNS政策
  • 再次简单明了总结flex布局,一看就懂...
  • Salesforce和SAP Netweaver里数据库表的元数据设计
  • 第二十章:异步和文件I/O.(二十三)
  • ​七周四次课(5月9日)iptables filter表案例、iptables nat表应用
  • (3)(3.2) MAVLink2数据包签名(安全)
  • (39)STM32——FLASH闪存
  • (附源码)计算机毕业设计ssm基于Internet快递柜管理系统
  • (三)终结任务
  • (完整代码)R语言中利用SVM-RFE机器学习算法筛选关键因子
  • (一)搭建springboot+vue前后端分离项目--前端vue搭建
  • (转载)微软数据挖掘算法:Microsoft 时序算法(5)
  • (轉貼)《OOD启思录》:61条面向对象设计的经验原则 (OO)
  • (总结)Linux下的暴力密码在线破解工具Hydra详解
  • ***利用Ms05002溢出找“肉鸡
  • .gitignore
  • .locked1、locked勒索病毒解密方法|勒索病毒解决|勒索病毒恢复|数据库修复
  • .Net - 类的介绍
  • .net core webapi Startup 注入ConfigurePrimaryHttpMessageHandler
  • .Net Core 中间件验签
  • .net mvc 获取url中controller和action