Comments
Sort by recent activity
Thanks Andrew...
x64 ASP.NET MVC application, with Unity 2.0 and all Unity assemblies are marked with this attribute.
Is there a KB article from MS on the .NET 2 bug, I might be able to get a hotfix using our Premier support agreement ? / comments
Thanks Andrew...
x64 ASP.NET MVC application, with Unity 2.0 and all Unity assemblies are marked with this attribute.
Is there a KB article from MS on the .NET 2 bug, I might be able to get a hotfi...
Thanks Clive...
I reset my list to Framework 3.5 and I now see the correct syntax.
Now if only I could see the code using Method syntax instead of Linq, like the original code, everything would be perfect 8) / comments
Thanks Clive...
I reset my list to Framework 3.5 and I now see the correct syntax.
Now if only I could see the code using Method syntax instead of Linq, like the original code, everything would be ...
Code code above is compiled in VS2008 using .NET 3.5
I see no difference using any optimization settings from 2.0 through to 4.0
My reflector version is 6.5.0.135.
What you posted is what I used to see when I selected .NET 3.5 optimization, but I prefer the method syntax so I set my optimization to 2.0.
Somewhere in the upgrade path from 5.x it changed. / comments
Code code above is compiled in VS2008 using .NET 3.5
I see no difference using any optimization settings from 2.0 through to 4.0
My reflector version is 6.5.0.135.
What you posted is what I used to...
Somewhere in the updates from version 5.x to 6.x ( I suspect when .NET 4.0 support was added ) the generation of C# for linq, initializers, extensions and anonymous methods has become atrocious.
It is almost making the tool useless as C# language features in our codebase become common place.
For example generator is now displaying direct execution of the static methods instead as an extension.
ie
Real Code
private class ReflectorExample
{
public ReflectorExample()
{
List<string> aListOfStrings = new List< string >() { "One", "Two", "Three" };
int countOf = aListOfStrings.Where( item => item.Length == 3 ).Count();
}
}
Reflected code private class ReflectorExample
{
[CompilerGenerated]
private static Func<string, bool> CS$<>9__CachedAnonymousMethodDelegate4;
[CompilerGenerated]
private static bool <.ctor>b__3(string item)
{
return (item.Length == 3);
}
// Methods
public ReflectorExample()
{
List<string> <>g__initLocal2 = new List<string>();
<>g__initLocal2.Add("One");
<>g__initLocal2.Add("Two");
<>g__initLocal2.Add("Three");
List<string> aListOfStrings = <>g__initLocal2;
if (CS$<>9__CachedAnonymousMethodDelegate4 == null)
{
CS$<>9__CachedAnonymousMethodDelegate4 = new Func<string, bool>(null, (IntPtr) <.ctor>b__3);
}
int countOf = Enumerable.Where<string>(aListOfStrings, CS$<>9__CachedAnonymousMethodDelegate4).Count<string>();
}
}
/ comments
Somewhere in the updates from version 5.x to 6.x ( I suspect when .NET 4.0 support was added ) the generation of C# for linq, initializers, extensions and anonymous methods has become atrocious.
It...
For others who have this same issue, can we get the hotfix too ? / comments
For others who have this same issue, can we get the hotfix too ?
Any update on this issue ? / comments
Any update on this issue ?