.net

Securing a .NET Application

Duplicate: Protecting .NET Code from Reverse Engineering We've recently released a small application and this weekend I found a cracked version of it on Piratebay that had the registration checking removed, so the app ran as if it was a registered version. Apart from using a code obfuscation tool (which doesn't seem to be that har...

Why .net client profile does not appear in Visual Studio 2008

I have Visual Studio 2008 but I don't see in Application tab, Target Profile Client. Any idea why? ...

SCP for C#

Is there a library that provides the ability to do SCP transfers in C#? ...

Are datasets scalable? Would a site like myspace use them for data retrieval?

Hi, How scalable are datasets? Team member wants to use datasets for data retrieval and manipulation, use the built in data integrity etc. to use the object to perform data updates etc. Our system is expected to scale to millions of users. Everything that I have read is against dataset's in an enterprise environment, am I wrong here ...

Cannibal Classes

For sometime now, I have been trying to wrap my head around the reason why some “cannibal” classes are allowed to compile. Before I continue, perhaps I should explain what I call a “cannibal” class. Not sure if I just invented that term or if it has been around for a while or even if I am using it correctly but that is not important ri...

How do I make a 'ReadOnly' property in LINQ to SQL?

I have a property ("IsLatest") that I have set 'Read Only' to 'True' Here's the XML: <Column Name="IsLatest" Type="System.Boolean" DbType="Bit NOT NULL" IsReadOnly="true" CanBeNull="false" /> Why does the code-generator generate a public 'get' AND 'SET' accessor? Also, is there a way to have it not generate a SET for a read-only pro...

Features - NHibernate versus Writing Custom Object-Relational Mapper

I'm looking for a list of all the features you would have implement in a custom object relational mapper (ORM) to meet all the features of NHibernate. to start: database portability through different drivers and dialects caching lazy loading custom SQL query interface - LINQ, Criteria, QBE (Query By Example) basi...

How to set the row class of a table based on cell content using jQuery?

I have the following table: <table class="grid"> <thead> <tr> <th>Name</th> <th>Status</th> <tr> </thead> <tbody> <tr> <td>Project 1</td> <td>Closed</td> <tr> <tr> <td>Project 2</td> <td>Open</td> <tr> <tr> <td>Project 3</td> <td>Closed</td> ...

WPF application in a loop, how to not have the whole application freeze?

Hello, I am having fun with WPF and got a problem. I have googled and found this website that has the same problem of me but without any working solution. The problem is that I have a button that do some processing of data (around 30 sec). I want to have the button to disable and to have log writing in a text box... the problem is that...

With the advent of extension methods, are abstract classes less attractive?

One interesting aspect of extension methods in .NET is the fact that you can apply them to interfaces. For me, it seems nice that I can define functionality near the interface without defining an abstract class that clutters the assembly. I know that abstract classes are not obsolete or anything, but how do you feel about utilizing this...

Letting the database pick the primary key in nhibernate

How do I just simply allow MySQL to assign a primary key to an inserted object with nhibernate? It seems I would want to set the generator as a type "identity", but the documentation states that using this "..require[s] two SQL queries to insert a new object." Why would it do that? Is there some way to get this functioning like a normal ...

Preprocessor Directives

Is there a simplistic reference for all preprocessor directives? ...

How do I check if a filename matches a wildcard pattern

I've got a wildcard pattern, perhaps "*.txt" or "POS??.dat". I also have list of filenames in memory that I need to compare to that pattern. How would I do that, keeping in mind I need exactly the same semantics that IO.DirectoryInfo.GetFiles(pattern) uses. EDIT: Blindly translating this into a regex will NOT work. ...

WCF - client proxy config does NOT match service web.config

I have a simple WCF Service that needs to handle large datastreams, so I have the a lot of the config values bumped up above the defaults. I've recently been moving all of my code into a new, restructured solution, and I just moved over the service. However, when I try to generate a client proxy (using either WCFTestClient.exe or "Add ...

WPF adding Icon to windows cause Property Error

Here is the exact error I got. The favicon.ico has been added in the project as a resource and I have set to "Resource" the Build Action. I found some solution that require to add some code. My question is why I can't do it with the Visual Studio Interface? ...

Compare compiled .NET assemblies?

Are there any good programs out there to compare to compile .NET assemblies? For example I have HelloWorld.dll (1.0.0.0) and HelloWorld.dll (2.0.0.0), and I want to compare differences how can I do this? I know I can use .NET Reflector and use the Assembly Diff plugin. Are there any other good tools out there to do this? ...

.NET Culture change event?

I have a .NET custom control that displays information in a culture dependant way. To improve performance I cache some information inside the control rather than generate it every time. I need to know if the culture has changed so that I can regenerate this internal info as appropriate. Is there some event I have hook into? Or do I hav...

Do you think generic properties would be useful in .NET?

I'm not talking about generic classes that declare properties or fields with the type of a generic parameter. I'm talking about generic properties which could be applied to both generic and non-generic classes. I'm not talking about this: public class Base<T> { public T BaseProperty { get; set; } } I'm talking about this: public...

Is there a Maven Alternative or port for the .NET world?

Is there a Maven Alternative or port for the .NET world? I would love to use a good dependency management system that the Java world has ... but i don't find anything comparable for .NET projects ... georg ...

Set 'Start Parameters' on Service Installation with .Net ServiceInstaller ?

Hello there, I am currently writing a little windows service application and I can successfully in/uninstall it etc via something like this: serviceProcessInstaller = new ServiceProcessInstaller(); serviceInstaller = new System.ServiceProcess.ServiceInstaller(); serviceProcessInstaller.Account = ServiceAccount.L...