Issues when using reflection and Obfuscation

.NET obfuscator and automated error reporting

Issues when using reflection and Obfuscation

Postby mattwilkinson » Thu Nov 07, 2013 11:41 am

I am using reflection in my classes to report the classname and method name when an error occurs:

Code: Select all
            Dim i As Integer = 0
            Dim s As String = "wibble"
            i = CInt(s)
        Catch ex As Exception
            ThrowExceptionEx(My.Application.Info.AssemblyName, MethodBase.GetCurrentMethod.DeclaringType.Name, MethodBase.GetCurrentMethod().Name, ex)
        End Try
    End Sub

But when I obfuscate the code the
Code: Select all
Code: Select all
get mangled. How can I stop obfuscation just on these items?
Posts: 1
Joined: Thu Nov 07, 2013 11:34 am

Postby GieltjE » Thu Nov 07, 2013 1:35 pm

Posts: 17
Joined: Sat Aug 24, 2013 12:51 pm

Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests