Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dnlib cant find nested type!

Featured Replies

Posted

Dnlib cant find nested type!
Nested type name:
Confuser_Methods_Decryptor.MetadataReader/TableSize

        public TypeDef FindTypeFullName(string typeFullName)
        {
        if (assemblies==null||assemblies.Count<=0)
        return null;
        
        for (int i=0;i<assemblies.Count;i++)
        {
            TypeDef foundtype = assemblies.Find(typeFullName, false);  // is a slah '/'
            if (foundtype!=null)
            return foundtype;
        }
        
        
        return null;
        }

So I've used AssemblyDef Find method,
anyway this doesn't find nested types!
What I do wrong? How to fix it?
 

  • Author

Seems the string is malformed:
        string toFindType = "Confuser_Methods_Decryptor.MetadataReader";
        string WrongStr   = "Confuser_Met hods_Decryptor.MetadataRead e r";
        
        int Len1 = toFindType.Length;  // 41
        int Len2 = WrongStr.Length;    // 44 WTF???

toFindType - when I enter that all is ok.

Confuser_Methods_Decryptor.MetadataReader
"Confuser_Met hods_Decryptor.MetadataRead e r"

This board really helps for seeing the malformed string!

 

  • Author

The solution was to trim spaces and NewLines like this:
        operand_str = operand_str.TrimEnd(' ');
        operand_str = operand_str.TrimEnd( '\r', '\n' );
 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.