Jump to content
Tuts 4 You
CodeExplorer

Difference between #~ and #-

Recommended Posts

CodeExplorer
Posted (edited)

To .NET experts:
What's the difference between #~ and #- ???
#~ seems to be the good and default one!
#- is used by dnlib
#~ is used by Mono.Cecil

 

 

Edited by CodeExplorer (see edit history)

Share this post


Link to post
Share on other sites
whoknows
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/index

 

Share this post


Link to post
Share on other sites
CodeExplorer
2 hours ago, whoknows said:

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/index

 

My question is not about C# operators but about .NET metadata streams!
Thanks for trying to help me.
I've changed the #~ stream name to #- and I can't see any difference: the exe runs ok.
 

  • Like 1

Share this post


Link to post
Share on other sites
kao

See ECMA335, read ".NET IL Assembler" by Serge Lidin or search .NET Core for ENC_MODEL_STREAM_A

"#~" is the standard "compressed" stream.
"#-" is an "uncompressed/unoptimized" stream that can contain deleted items, items from edit-and-continue operation in VS, etc.

  • Like 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×