How can we help you today? How can we help you today?
Kaelum

Activity overview

Latest activity by Kaelum

Comments are not being disassembled
I just noticed that comments (i.e. XML Comments) are no longer being disassembled. I am currently running Version 9.0.1.374 PRO.
3 followers 5 comments 0 votes
Here is System.Configuration.Provider.ProviderBase disassembled for .NET 4.5: public abstract class ProviderBase { // Fields private string _Description; private bool _Initialized; private string _name; // Methods protected ProviderBase() { } public virtual void Initialize(string name, NameValueCollection config) { ProviderBase base2 = this; lock (base2) { if (this._Initialized) { throw new InvalidOperationException(SR.GetString("Provider_Already_Initialized")); } this._Initialized = true; } if (name == null) { throw new ArgumentNullException("name"); } if (name.Length == 0) { throw new ArgumentException(SR.GetString("Config_provider_name_null_or_empty"), "name"); } this._name = name; if (config != null) { this._Description = config["description"]; config.Remove("description"); } } // Properties public virtual string Description { get { if (!string.IsNullOrEmpty(this._Description)) { return this._Description; } return this.Name; } } public virtual string Name { get { return this._name; } } } and here is what you get if you right click / Copy As / Text: namespace System.Configuration.Provider { using System; using System.Collections.Specialized; using System.Configuration; public abstract class ProviderBase { private string _Description; private bool _Initialized; private string _name; protected ProviderBase() { } public virtual void Initialize(string name, NameValueCollection config) { ProviderBase base2 = this; lock (base2) { if (this._Initialized) { throw new InvalidOperationException(System.Configuration.SR.GetString("Provider_Already_Initialized")); } this._Initialized = true; } if (name == null) { throw new ArgumentNullException("name"); } if (name.Length == 0) { throw new ArgumentException(System.Configuration.SR.GetString("Config_provider_name_null_or_empty"), "name"); } this._name = name; if (config != null) { this._Description = config["description"]; config.Remove("description"); } } public virtual string Description { get { if (!string.IsNullOrEmpty(this._Description)) { return this._Description; } return this.Name; } } public virtual string Name => this._name; } } As you can see, what is being shown in the disassembler is not what is copied to the clipboard. The code for the Name property is completely different and does not compile in VS 2013. / comments
Here is System.Configuration.Provider.ProviderBase disassembled for .NET 4.5:public abstract class ProviderBase { // Fields private string _Description; private bool _Initialized; p...
0 votes
BUG: Right Click / Copy As
I don't know which update broke this, but this context menu item no longer works correctly. It now always returns code in a .NET 4.6 / C# 6 / VB 14 format, no matter what Optimization you have it ...
3 followers 5 comments 0 votes