|
|
@ -156,6 +156,7 @@ namespace ICSharpCode.ILSpy |
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(assembly, options); |
|
|
|
AddReferenceAssemblyWarningMessage(assembly, output); |
|
|
|
AddReferenceWarningMessage(assembly, output); |
|
|
|
WriteCommentLine(output, assembly.FullName); |
|
|
|
WriteCommentLine(output, TypeToString(method.DeclaringType, includeNamespace: true)); |
|
|
|
var methodDefinition = decompiler.TypeSystem.MainModule.ResolveEntity(method.MetadataToken) as IMethod; |
|
|
|
if (methodDefinition.IsConstructor && methodDefinition.DeclaringType.IsReferenceType != false) |
|
|
@ -237,6 +238,7 @@ namespace ICSharpCode.ILSpy |
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(assembly, options); |
|
|
|
AddReferenceAssemblyWarningMessage(assembly, output); |
|
|
|
AddReferenceWarningMessage(assembly, output); |
|
|
|
WriteCommentLine(output, assembly.FullName); |
|
|
|
WriteCommentLine(output, TypeToString(property.DeclaringType, includeNamespace: true)); |
|
|
|
WriteCode(output, options.DecompilerSettings, decompiler.Decompile(property.MetadataToken), decompiler.TypeSystem); |
|
|
|
} |
|
|
@ -247,6 +249,7 @@ namespace ICSharpCode.ILSpy |
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(assembly, options); |
|
|
|
AddReferenceAssemblyWarningMessage(assembly, output); |
|
|
|
AddReferenceWarningMessage(assembly, output); |
|
|
|
WriteCommentLine(output, assembly.FullName); |
|
|
|
WriteCommentLine(output, TypeToString(field.DeclaringType, includeNamespace: true)); |
|
|
|
if (field.IsConst) |
|
|
|
{ |
|
|
@ -315,6 +318,7 @@ namespace ICSharpCode.ILSpy |
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(assembly, options); |
|
|
|
AddReferenceAssemblyWarningMessage(assembly, output); |
|
|
|
AddReferenceWarningMessage(assembly, output); |
|
|
|
WriteCommentLine(output, assembly.FullName); |
|
|
|
WriteCommentLine(output, TypeToString(@event.DeclaringType, includeNamespace: true)); |
|
|
|
WriteCode(output, options.DecompilerSettings, decompiler.Decompile(@event.MetadataToken), decompiler.TypeSystem); |
|
|
|
} |
|
|
@ -325,6 +329,7 @@ namespace ICSharpCode.ILSpy |
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(assembly, options); |
|
|
|
AddReferenceAssemblyWarningMessage(assembly, output); |
|
|
|
AddReferenceWarningMessage(assembly, output); |
|
|
|
WriteCommentLine(output, assembly.FullName); |
|
|
|
WriteCommentLine(output, TypeToString(type, includeNamespace: true)); |
|
|
|
WriteCode(output, options.DecompilerSettings, decompiler.Decompile(type.MetadataToken), decompiler.TypeSystem); |
|
|
|
} |
|
|
|