Jump to content
Tuts 4 You

Difference between #~ and #-


CodeExplorer

Recommended Posts

CodeExplorer

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
Link to comment
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
Link to comment

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
Link to comment

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
×
×
  • Create New...