• 大小: 2.45M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: ILSpy源码  

资源简介

ILSpy5.0源码学习

资源截图

代码片段和文件信息

#!/usr/bin/env python

import os sys

def check(filename):
ok = True
with open(filename ‘r‘) as f:
for i line in enumerate(f):
if line.startswith(‘ ‘):
print(‘{}:{}: Line starting with spaces. Use tabs for indentation instead!‘.format(filename i+1))
ok = False
return ok

def main():
root_dir = os.path.normpath(os.path.join(os.path.dirname(__file__) ‘..‘))
dirs_to_check = (
os.path.join(root_dir subdir)
for subdir in (‘ICSharpCode.Decompiler‘ ‘ICSharpCode.Decompiler.Tests‘ ‘ILSpy‘ ‘ILSpy.BamlDecompiler‘))
ok = True
for dir in dirs_to_check:
for root dirs files in os.walk(dir):
if ‘\\obj\\‘ in root:
continue
for filename in files:
if filename.lower().endswith(‘.cs‘):
if not check(os.path.join(root filename)):
ok = False
print(‘T

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-09 20:32  ILSpy-5.0-preview1\
     文件        4123  2019-03-09 20:32  ILSpy-5.0-preview1\.editorconfig
     文件          77  2019-03-09 20:32  ILSpy-5.0-preview1\.gitattributes
     文件         568  2019-03-09 20:32  ILSpy-5.0-preview1\.gitignore
     文件          99  2019-03-09 20:32  ILSpy-5.0-preview1\.gitmodules
     文件          38  2019-03-09 20:32  ILSpy-5.0-preview1\.tgitconfig
     目录           0  2019-03-09 20:32  ILSpy-5.0-preview1\BuildTools\
     文件         975  2019-03-09 20:32  ILSpy-5.0-preview1\BuildTools\appveyor-ilspycmd-install.ps1
     文件        1369  2019-03-09 20:32  ILSpy-5.0-preview1\BuildTools\appveyor-install.ps1
     文件         925  2019-03-09 20:32  ILSpy-5.0-preview1\BuildTools\tidy.py
     文件        5119  2019-03-09 20:32  ILSpy-5.0-preview1\BuildTools\update-assemblyinfo.ps1
     文件        2432  2019-03-09 20:32  ILSpy-5.0-preview1\DecompilerNuGetDemos.workbook
     文件        2034  2019-03-09 20:32  ILSpy-5.0-preview1\Frontends.sln
     目录           0  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\
     文件        1721  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\ICSharpCode.Decompiler.Console.csproj
     文件        8320  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\IlspyCmdProgram.cs
     文件         325  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\ProgramExitCodes.cs
     文件        1056  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\README.md
     文件        1362  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\TypesParser.cs
     文件         616  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.Console\ValidationAttributes.cs
     目录           0  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PdbProvider.Cecil\
     文件         457  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PdbProvider.Cecil\ICSharpCode.Decompiler.PdbProvider.Cecil.csproj
     文件        4457  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PdbProvider.Cecil\MonoCecilDebugInfoProvider.cs
     目录           0  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\
     文件         944  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\Demo.ps1
     文件         272  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\ErrorIds.cs
     文件        1406  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\GetDecompiledProjectCmdlet.cs
     文件        1074  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\GetDecompiledSourceCmdlet.cs
     文件        1132  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\GetDecompiledTypesCmdlet.cs
     文件         969  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\GetDecompilerCmdlet.cs
     文件         405  2019-03-09 20:32  ILSpy-5.0-preview1\ICSharpCode.Decompiler.PowerShell\GetDecompilerVersion.cs
............此处省略1230个文件信息

评论

共有 条评论

相关资源