Hi,
I think there is an issue with the domain - "justdecompile.telerik.com". Becuase of this, justdecompile cannot install new plugns.
The error I am getting is:
Cannot connect to JustDecompile server.
Please, check your internet connection.
Could not establish secure channel for SSL/TLS with authority 'justdecompile.telerik.com'.
No proxy server, straight up vanilla internet connection. I can successfully ping justdecompile.telerik.com
Hi,
I think there is an issue with the domain - "justdecompile.telerik.com". Becuase of this, justdecompile cannot install new plugns.
Certificate name mismatch
Please check the link below for the issue reported.
https://globalsign.ssllabs.com/analyze.html?d=justdecompile.telerik.com
Thanks,
Rakesh
I just installed JustDecompile for the first time on my Windows 10 machine, and when I start it up I am getting this error:
Progress/Telerik Team,
I am requesting this bug fix after reading many forum posts about it, and having myself been burdened by this issue for several years. I posted a comment on another thread, but felt like I should start my own ticket.
Here is the other thread, posted by Joe:
https://feedback.telerik.com/justdecompile/1536217-issue-with-justdecompile-telerik-com-domain
This is still happening after uninstalling all previous versions and doing a clean install from the Progress Control Panel on 01/20/2022. I have confirmed this issue on 2016 versions, 2017_2_706_0, and 2019_1_118_0. Like all the other posters, I have no proxies set up, just a straight up internet connection. Also, I can hit both of the services that are referenced in the JustDecompile.exe.config directly from a browser.
https://justdecompile.telerik.com/AutoUpdatesService/UpdatesService.svc
https://www.telerik.com/services/productversion/service.svc (NO METADATA)
There are 2 issues at play here.
Issue-01: (see: issue-01-on-just-decompile-load.png)
When opening JustDecompile, user receives the error message:
"Cannot connect to JustDecompile update server. Please check your internet connection or disable automatic updates to avoid further connection attempts."
So, of course, I can disable the automatic updates check (see: issue-01-workaround.png). This is merely a work-around to stop the messagebox from popping up. This is not a true fix. Also, this does not fix the second issue. When decompilng JustDecompile to attempt to find the issue, of course it is obfuscated. The exception is being thrown in the JustDecompile.AutoUpdates, Updater class, in the method:
private void (string u009au0018, Dispatcher u0089u0018)
{
try
{
Updater updater = this;
bool includeInternalBuildsWhenCheckForUpdates = .Settings.IncludeInternalBuildsWhenCheckForUpdates;
bool flag = this..CheckForLatestOrInternalVersion(u009au0018, includeInternalBuildsWhenCheckForUpdates);
this..(false).Wait();
if (Updater..Count > 0)
{
Updater..ForEach((Action<bool?> argument0) => argument0(new bool?((flag ? true : updater..HasAnyUpdates))));
Updater..Clear();
}
if (flag || this..HasAnyUpdates)
{
this.(u0089u0018, .CurrentVersion.ToString(), true);
}
if (!flag)
{
.Settings.LastFoundVersion = u009au0018;
.SaveSettings();
}
}
catch (Exception exception)
{
Updater..ForEach((Action<bool?> argument1) => argument1(null));
Updater..Clear();
.BeginInvoke(() => {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("Cannot connect to JustDecompile update server.").Append(Environment.NewLine).Append("Please, check your internet connection or disable automatic updates to avoid ").Append(Environment.NewLine).Append("further connection attempts.");
ToolWindow.Alert(stringBuilder.ToString());
}, DispatcherPriority.Normal);
}
Updater. = false;
}
Issue 02: (see: issue-02-on-plugins-manager-load.png)
When user opens Plugin Manager, user receives the error message:
"Cannot connect to JustDecompile server. Please check your internet connection. Could not establish secure channel for SSL/TLS with authority 'justdecompile.telerik.com'".
The relevant code is here. Again, it is obfuscated, so doesnt make too much sense, but it resides in the class labeled 'u009au0088' in what I speculate to be the ServerPluginsService, as it implements the IServerPluginsService.
public void (u0018u0086. u009cu0086)
{
_u009cu0088 = this;
int num = 0;
if (2 != 0)
{
_u009cu0088.IsBusy = (bool)num;
}
else
{
}
if (!u009cu0086.)
{
this.IsLoaded = true;
this.(u009cu0086.);
return;
}
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("Cannot connect to JustDecompile server.").Append(Environment.NewLine).Append("Please, check your internet connection.").Append(Environment.NewLine).Append(u009cu0086..InnerException.Message);
ToolWindow.Alert(stringBuilder.ToString());
}
If you are having trouble finding it in your code, just do a search for "Cannot connect to" . There are also places in the code, where the 2 servers listed above are hardcoded, some with http:// and some with https:// Not sure if there could be a mismatch regarding what is hardcoded and what is in the config file.
Is this ever going to be fixed or should the community just deal with unresolved errors in the software we pay for? There are tons of forum posts about this dating back to 2013, 2017, and as recent as 2021, and all of the responses have been that you are aware of the problem and that a fix is planned. When is the fix planned for? "The near future"? Did you stop working on it completely. If so, then why is it still available in the Progress Control Panel? Can we ever expect this application to work correctly, as it used to?
https://www.telerik.com/forums/cannot-connect-to-justdecompile-server
https://www.telerik.com/forums/provide-a-place-to-enter-the-proxy-details
https://feedback.telerik.com/justdecompile/1470252-issue-with-justdecompile-telerik-com-domain
this link in update when tool start https://justdecompile.telerik.com/AutoUpdatesService/UpdatesService.svc -> ceritficate error
view image attachment
Can not load WinRT Metadata, the option is grayed out even though I am running Windows 10 and the C:\Windows\System32\WinMetadata folder does exist.
I also tried open the above folder but JustDecompile says it can not fild the folder! I did start JustDecompile as the admin, no luck.
Please assist. Thanks.
The attached project causes a decompilation error in the DrawPixels() method:
Current member / type: System.Void ConwaysLife.LifeForm::DrawPixels()
Product version: 2019.1.118.0
Exception in: System.Void DrawPixels()
Value does not fall within the expected range.
at ??.??.??(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 237
at ??.??.Visit(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 276
at ??.??.Visit[??,??](?? ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 286
at ??.??.Visit(? ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 317
at ??.??.?(?? ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 337
at ?.?.?.Match(?? ?, Int32 ?) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAnonymousDelegatesStep.cs:line 119
at ?.?.?(?? ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAnonymousDelegatesStep.cs:line 28
at ?.?.?(DecompilationContext ?, ?? ??) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAnonymousDelegatesStep.cs:line 21
at ??.??.(MethodBody ??, ?? ?, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 88
at ??.??.?(MethodBody ??, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 70
at Telerik.JustDecompiler.Decompiler.Extensions.??(?? ??, ILanguage , MethodBody ??, DecompilationContext& ?) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 95
at Telerik.JustDecompiler.Decompiler.Extensions.??(MethodBody ??, ILanguage , DecompilationContext& ?, ??) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 58
at ??.??.?(ILanguage , MethodDefinition ?, ??) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\WriterContextServices\BaseWriterContextService
The code from from here https://github.com/ericlippert/ConwaysLife/tree/episode28
but since the code is frequently changed I've attached a zip file.
Code Viewer Font setting is reset every time.
Always Courier New,13 even changing Consolas.
I've noticed that the program when exporting a project gives me cameraInfo.get_VerticalExtent() instead of cameraInfo.VerticalExtent
It seems to be making a method instead of a property of an object.
Decompiling the following code in either DEBUG or RELEASE build gives the exception below:
public IEnumerable<int> YieldTest(IEnumerable<int> sequenceA, List<int> sequenceB)
{
foreach (var i in sequenceA)
{
foreach (var j in sequenceB)
{
yield return i*j;
}
}
}
So a foreach nested inside another foreach...
Current member / type: System.Collections.Generic.IEnumerable`1<System.Int32> Tests.TestClass::YieldTest(System.Collections.Generic.IEnumerable`1<System.Int32>,System.Collections.Generic.List`1<System.Int32>)
File path: C:\Projects\Sandbox\Decompile Test\Tests\Tests\bin\Release\Tests.dll
Product version: 2019.1.118.0
Exception in: System.Collections.Generic.IEnumerable<System.Int32> YieldTest(System.Collections.Generic.IEnumerable<System.Int32>,System.Collections.Generic.List<System.Int32>)
Invalid state value
at ..( , Queue`1 , ILogicalConstruct ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\YieldGuardedBlocksBuilder.cs:line 203
at ..( ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\YieldGuardedBlocksBuilder.cs:line 187
at ..( ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\YieldGuardedBlocksBuilder.cs:line 129
at ..( ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\YieldGuardedBlocksBuilder.cs:line 76
at ..() in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\LogicalFlowBuilderStep.cs:line 126
at ..(DecompilationContext , ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\LogicFlow\LogicalFlowBuilderStep.cs:line 51
at ..(MethodBody , , ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 88
at ..(MethodBody , ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 70
at Telerik.JustDecompiler.Decompiler.Extensions.(MethodBody , DecompilationContext , , Func`2 , DecompilationContext& ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 104
at Telerik.JustDecompiler.Decompiler.Extensions.(MethodBody , DecompilationContext , & ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 139
at ..() in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildYieldStatementsStep.cs:line 134
at ..Match( ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildYieldStatementsStep.cs:line 49
at ..(DecompilationContext , ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildYieldStatementsStep.cs:line 20
at ..(MethodBody , , ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 88
at ..(MethodBody , ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 70
at Telerik.JustDecompiler.Decompiler.Extensions.( , ILanguage , MethodBody , DecompilationContext& ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 95
at Telerik.JustDecompiler.Decompiler.Extensions.(MethodBody , ILanguage , DecompilationContext& , ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 58
at ..(ILanguage , MethodDefinition , ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\WriterContextServices\BaseWriterContextService.
I also send an email about this when I encountered it earlier but here is an actual code example.
In certain situations with a for-loop nested inside another loop, a break-statement in the inner loop will decompile to a goto that also exits the outer loop.
If this code is compiled in RELEASE mode:
public void NestedForTest(IEnumerable<char> line)
{
foreach (var ch in line)
{
for (int i = 0; i < 4; i++)
{
Console.Write("-"); // If this line is removed it works
if (ch == 't') break;
Console.Write(ch);
}
}
Console.WriteLine();
}
The following code is decompiled:
public void NestedForTest(IEnumerable<char> line)
{
Label0:
foreach (char ch in line)
{
for (int i = 0; i < 4; i++)
{
Console.Write("-");
if (ch == 't')
{
goto Label0; // THIS IS WRONG!
}
Console.Write(ch);
}
}
Console.WriteLine();
}
NOTE:
- It is only a problem when the code is compiled in a RELEASE configuration (in DEBUG it interpret it as a while-loop and the code is correct)
- If the line before the exit-check is removed (see comment in code) it decompiles correctly.
I open JustDecompile and immediately get the following error:
System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Infrastructure.XmlSerialization.AssemblyLists.FileListSerializer.(String ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\Infrastructure\XmlSerialization\AssemblyLists\FileListSerializer.cs:line 226
at Infrastructure.XmlSerialization.AssemblyLists.FileListSerializer.(String , Int32& ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\Infrastructure\XmlSerialization\AssemblyLists\FileListSerializer.cs:line 172
at Infrastructure.XmlSerialization.AssemblyLists.FileListSerializer.(String ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\Infrastructure\XmlSerialization\AssemblyLists\FileListSerializer.cs:line 109
at Infrastructure.Configuration.(String ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\Infrastructure\Configuration.cs:line 415
at Infrastructure.Configuration.(Action , ITabManager ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\Infrastructure\Configuration.cs:line 395
at JustDecompile.Shell.<OnShellLoaded>b__38_0() in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\JustDecompile\Shell.xaml.cs:line 97
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at JustDecompile.App.Main() in C:\DeveloperTooling_JD_Agent1\_work\15\s\UI\JustDecompile\obj\x86\Release\App.g.cs:line 16777215
In version: 2019.1.118.0
I have reported the exception as instructed but have received no response. I've posted in the Forums with no response for over a week as well.
Compile the following code:
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace BugReport {
public class CustomObservableCollection<T> : ObservableCollection<T> {
public void AddRange<S>(IEnumerable<S> list) where S : T {
using (IEnumerator<S> enumerator = list.GetEnumerator()) {
while (enumerator.MoveNext()) {
base.Add(enumerator.Current);
}
}
}
}
}
Open the generated assembly in Just Decompile and look at the result. In my version (2019.1.118.0) I get the following incorrect (not compilable) results:
C#:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace BugReport
{
public class CustomObservableCollection<T> : ObservableCollection<T>
{
public CustomObservableCollection()
{
}
public void AddRange<S>(IEnumerable<S> list)
where S : T
{
foreach (S in list)
{
base.Add((T)(object));
}
}
}
}
VB:
Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Namespace BugReport
Public Class CustomObservableCollection(Of T)
Inherits ObservableCollection(Of T)
Public Sub New()
MyBase.New()
End Sub
Public Sub AddRange(Of S As T)(ByVal list As IEnumerable(Of S))
For Each As S In list
MyBase.Add(DirectCast(, T))
Next
End Sub
End Class
End Namespace
whatever exe file or dll file I drag in the justdecompile window, i get a windw with the error message:
Justdecompile support only valid CLR assemblies. Not supported file:
(name of the file dropped)
I downloaded the following from Microsoft - these are used by the Azure Service Fabric Cluster - and they have issues:
I am trying to determine where they build an http string. To read the code, it looks like they do nothing. My guess is there i something 'special" going on. Looks like an opportunity to build out Just-Decompile...
Upon de-compiling, the actual meat of the services is (whatever this means):
private async void ThreadProc(object state)
{
Service.<ThreadProc>d__7 variable = new Service.<ThreadProc>d__7();
variable.<>4__this = this;
variable.<>t__builder = AsyncVoidMethodBuilder.Create();
variable.<>1__state = -1;
variable.<>t__builder.Start<Service.<ThreadProc>d__7>(ref variable);
}
When decompiling an enum and looking at it in IL, the whole type definitions of the underlying type are missing, the assignments are incorrect and there is a sort order issue (JustDecompile sorts according to the Name but should keep the original order how the elements have been compiled).
Current decompilation:
.class public auto ansi sealed Hafner.Testing.Enums.CharEnum extends [mscorlib]System.Enum { Alpha = α Beta = β Chi = χ Delta = δ Epsilon = ϵ Eta = η Gamma = γ Iota = ι Kappa = κ Lambda = λ Mu = μ Nu = ν Omega = ω Omicron = o Phi = ϕ Pi = π Psi = ψ Rho = ρ Sigma = σ Tau = τ Theta = θ Upsilon = υ Xi = ξ Zeta = ζ }
Expected decompilation:
.class public auto ansi sealed Hafner.Testing.Enums.CharEnum extends [mscorlib]System.Enum { .field public specialname rtspecialname char value__ .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Alpha = char(0x03B1) //'α' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Beta = char(0x03B2) //'β' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Gamma = char(0x03B3) //'γ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Delta = char(0x03B4) //'δ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Epsilon = char(0x03F5) //'ϵ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Zeta = char(0x03B6) //'ζ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Eta = char(0x03B7) //'η' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Theta = char(0x03B8) //'θ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Iota = char(0x03B9) //'ι' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Kappa = char(0x03BA) //'κ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Lambda = char(0x03BB) //'λ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Mu = char(0x03BC) //'μ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Nu = char(0x03BD) //'ν' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Xi = char(0x03BE) //'ξ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Omicron = char(0x006F) //'o' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Pi = char(0x03C0) //'π' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Rho = char(0x03C1) //'ρ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Sigma = char(0x03C3) //'σ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Tau = char(0x03C4) //'τ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Upsilon = char(0x03C5) //'υ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Phi = char(0x03D5) //'ϕ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Chi = char(0x03C7) //'χ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Psi = char(0x03C8) //'ψ' .field public static literal valuetype Hafner.Testing.Enums.FlagsVanillaChar Omega = char(0x03C9) //'ω' }
The displayed IL code is not valid IL and lots of details are missing. It would be nice if that could be fixed.I attach a test DLL (still status 'work in progress') with different valid and invalid enum definitions on which you can try out any fixed code.
Best regards
Christoph
When I export a project, enums are not processed properly. I get:
ViewType viewType1 = activeView.ViewType; switch (viewType1) { case 1: { break; } case 2: { return result; } }
instead of:
ViewType viewType1 = activeView.ViewType; switch (viewType1) { case ViewType.FloorPlan: { break; } case ViewType.CeilingPlan: { return result; } }
Incorrect:
Correct:
internal Class2653 this[ushort ushort_0]
{
get
{
return (Class2653)this.hashtable_0[ushort_0];
}
}
For example, select (double click) "Class2016" and close Search dialog, tab content code will Class2016's code, but sometimes the tab texts still "Class1577", no change, please check.