{"action":"opened","issue":{"url":"https://api.github.com/repos/yck1509/ConfuserEx/issues/373","labels_url":"https://api.github.com/repos/yck1509/ConfuserEx/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/yck1509/ConfuserEx/issues/373/comments","events_url":"https://api.github.com/repos/yck1509/ConfuserEx/issues/373/events","html_url":"https://github.com/yck1509/ConfuserEx/issues/373","id":118355349,"number":373,"title":"Numeric Constants not Encoded","user":{"login":"ab-tools","id":1347603,"avatar_url":"https://avatars.githubusercontent.com/u/1347603?v=3","gravatar_id":"","url":"https://api.github.com/users/ab-tools","html_url":"https://github.com/ab-tools","followers_url":"https://api.github.com/users/ab-tools/followers","following_url":"https://api.github.com/users/ab-tools/following{/other_user}","gists_url":"https://api.github.com/users/ab-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/ab-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab-tools/subscriptions","organizations_url":"https://api.github.com/users/ab-tools/orgs","repos_url":"https://api.github.com/users/ab-tools/repos","events_url":"https://api.github.com/users/ab-tools/events{/privacy}","received_events_url":"https://api.github.com/users/ab-tools/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T10:37:21Z","updated_at":"2015-11-23T10:37:21Z","closed_at":null,"body":"While still testing the obfuscation of ConfuserEx I noticed that not all constants are encoded.\r\n\r\nHere is a small example project to show the issue:\r\nhttp://www.ab-tools.com/temp/ConfuserTest1.zip\r\n\r\nAs you can see I've used the obfuscation option \"constants(elements=SNPI)\" for testing which should really encode all constants.\r\n\r\nThen in the code I've defined following constant strings (not as \"real\" constants, but just as \"realonly\" string that ConfuserEx is able to change them):\r\n\t\tprivate readonly string STRING_CONSTANT_TEST = \"test\";\r\n\t\tprivate readonly int INT_CONSTANT_TEST = 716417;\r\n\t\tprivate readonly double DOUBLE_CONSTANT_TEST = 3.45752;\r\n\t\tprivate readonly int PRIMITIVE_CONSTANT_TEST = 1;\r\n\r\nAs you can see in the obfuscated assembly the first constant (the string type one) is encoded just fine, but none of the other 3 - it looks like this after obfuscation:\r\n  private readonly string B = <Module> . <string>(2429719518U);\r\n  private readonly int c = 716417;\r\n  private readonly double C = 3.45752;\r\n  private readonly int d = 1;\r\n\r\nWhat is the reason for that?\r\n\r\nThank you\r\nAndreas"}}