Jump to content
Tuts 4 You

Difference between #~ and #-


CodeExplorer

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
Posted
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/index

 

CodeExplorer
Posted
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
Posted

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

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...