tags:

views:

34

answers:

1

Hi, how can I protect my business logic C# code that I have written in a COM object from being reverse engineered by a high tech geek?

A: 

Did you mean you created a COM callable wrapper around some C# code?

Anyway, to help protect your C# code (ILDASM or Reflector)... trying using an obfuscator.

Dotfuscator Community Edition 3.0 (free)

http://msdn.microsoft.com/en-us/library/ms227240%28VS.80%29.aspx

Kris Krause
I am guessing COM objects cannot be created in MS.Net framwork? I mean the business layer of a 3 tier application. Are they called something else (classic asp called them COM objects). Thx for your help.
LearningCSharp
Sure you can create COM callable objects in C#... via interop -http://msdn.microsoft.com/en-us/library/kew41ycz.aspx
Kris Krause
In .NET, the "business layer" would just be objects (or classes). You would write them and package them in a DLL, and call them from your ASP.NET code in a similar way to how your classic ASP code called COM objects. But COM isn't involved: it's just .NET code calling .NET code. You *can* expose .NET classes so that they are usable as COM objects, i.e. by COM clients such as VB6, MFC or ASP; but you wouldn't do so unless you had a need to call them from non-.NET code such as an existing VB6 or MFC program.
itowlson
@itowlson, so the term "COM" is not used when it is .Net code calling .Net code? I have done wrapper code, and I have done straight COM code, but I am curious what is the technical term for the code in the business layer ? Thanks for everyones help.
LearningCSharp
Managed .NET code calling managed .NET code is not COM nor is it using COM (as in Microsoft Component Object Model).
Kris Krause