Hi,
I've got some forms with loads of controls for entering numbers. Each
text box should behave in a similare way but i hated writing all the
text processing code for every text box. So I made a function that
took the object whose property was being set, the name of the property
and the textbox that has the text to read
public static void SetIntProperty(object owner, string propertyName,
TextBox textBox)
this saves me lots of repeated code, but after obfuscation it clearly
won't work. Presumable neither will my serialized data files load.
Reflection and serialization seem not so useful if you have to
obfuscate.
Are there any alternatives to obfuscation? Compile to machine code
perhaps?
Any help greatly appriciated,
Bob 3 1640
Obfuscation shouldn't touch public members.. so I can't see how it would be
a problem?
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om... Hi, I've got some forms with loads of controls for entering numbers. Each text box should behave in a similare way but i hated writing all the text processing code for every text box. So I made a function that took the object whose property was being set, the name of the property and the textbox that has the text to read
public static void SetIntProperty(object owner, string propertyName, TextBox textBox)
this saves me lots of repeated code, but after obfuscation it clearly won't work. Presumable neither will my serialized data files load.
Reflection and serialization seem not so useful if you have to obfuscate.
Are there any alternatives to obfuscation? Compile to machine code perhaps?
Any help greatly appriciated,
Bob
Actually I think I missed your point.
So you have a lot of text processing code that you didn't want to write over
and over again... how about :
a) Write a custom control, derived from TextBox, that encapsulates your
processing. Then instantiate that for each textbox to save you from
duplicating your work. Or.
b) Change the Modified property of the textboxes to make them public,
therefore stopping the obfuscator from touching them.
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om... Hi, I've got some forms with loads of controls for entering numbers. Each text box should behave in a similare way but i hated writing all the text processing code for every text box. So I made a function that took the object whose property was being set, the name of the property and the textbox that has the text to read
public static void SetIntProperty(object owner, string propertyName, TextBox textBox)
this saves me lots of repeated code, but after obfuscation it clearly won't work. Presumable neither will my serialized data files load.
Reflection and serialization seem not so useful if you have to obfuscate.
Are there any alternatives to obfuscation? Compile to machine code perhaps?
Any help greatly appriciated,
Bob
Hi Jon,
thanks alot for your help.
The obfuscator i'm using (dotfuscator from the tools menu in visual
studio) is obfuscating everything, regardless of whether private or
public. But I think that's good as I want to keep as much as possible
secret.
I like the idea of subclassing textbox, but I'll still need to pass in
the name of the property it corresponds to, and then obfuscation will
get me again.
Or have I missed something?
Thanks,
Bob
"John Wood" <sp**@isannoying.com> wrote in message news:<sL*********************@news4.srv.hcvlny.cv. net>... Actually I think I missed your point.
So you have a lot of text processing code that you didn't want to write over and over again... how about: a) Write a custom control, derived from TextBox, that encapsulates your processing. Then instantiate that for each textbox to save you from duplicating your work. Or. b) Change the Modified property of the textboxes to make them public, therefore stopping the obfuscator from touching them.
"bob" <bo**********@hotmail.com> wrote in message news:b0**************************@posting.google.c om... Hi, I've got some forms with loads of controls for entering numbers. Each text box should behave in a similare way but i hated writing all the text processing code for every text box. So I made a function that took the object whose property was being set, the name of the property and the textbox that has the text to read
public static void SetIntProperty(object owner, string propertyName, TextBox textBox)
this saves me lots of repeated code, but after obfuscation it clearly won't work. Presumable neither will my serialized data files load.
Reflection and serialization seem not so useful if you have to obfuscate.
Are there any alternatives to obfuscation? Compile to machine code perhaps?
Any help greatly appriciated,
Bob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jonathan Henderson |
last post by:
Obfuscators aren't only used for protecting intellectual property.
See the hacker demo at this link:
http://www.preemptive.com/documentation/NetHackerDemo.html
For those who don't know what...
|
by: petantik |
last post by:
Are there any commercial, or otherwise obfuscators for python source
code or byte code and what are their relative advantages or
disadvantages. I wonder because there are some byte code protection...
|
by: vincent |
last post by:
I made the suggestion "Need built in obfuscation support in C# compiler" to
Microsoft. Anyone here agree with me? If yes, please cast your vote on this
suggestion to raise its priority.
|
by: ..:: Kevin ::.. |
last post by:
Is it possible to perform obfuscation on code automatically as part of a
build in Visual Studio 2003?
For example, instead of building code in release mode, is it possible to
create a custom...
|
by: John T. |
last post by:
Hi all
Figure this scenario:
- My Company develops an assembly (a controls DLL)
- Since an obfuscation software is too expensive, my Company engages a
consultant and delegates him the...
|
by: artistography |
last post by:
Hello,
I was wondering:
If obfuscation isn't all that good, why does Google obfuscate its
search results' code? Okay, I realize they're a commercial entity and
need to do it. How do they do it?...
|
by: GK |
last post by:
Hello,
Can anybody suggest a best code obfuscation tool based on their exeperience
? (e.g.: testing effort after obfuscation is 0)
thanks,
GK
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |