.net

Localize .NET assembly without source code

Hey, I need to localize a .NET assembly (winforms exe), but I don't have its source code. Is there any good tool that allows this? Thanks. ...

.NET Results Class

I have a C# function that does some processing and needs to return figures about what it has processed, success, failure, etc. Can anyone tell me if there are any standard framework classes that will handle this (for example, number of records processed, number successful, failed, etc) ? Alternatively, can anyone say how they usual...

Practical differences between classes and structs in .net (not conceptual)?

Whenever I tried to search about differences between classes and structs in C# or .net, I ended up with the conceptual overview of the two things like value type or the reference type, where the variables are allocated etc. But I need some practical differences. I have found some like different behavior of assignment operator, having con...

SQLite connection pooling with Fluent NHibernate

Is there a way to setup SQLite connection pooling using Fluent NHibernate configuration? E.g. equivalent of DataSource=:memory: would be: var sessionFactory = Fluently .Configure() .Database(SQLiteConfiguration.Standard.InMemory) (etc.) Is there something eqivalent to "Pooling=True;Max Pool Size=1;"? ...

How to create a 2 bit gif from tiff file in dotnet

Hi, I have used Bitmap class to convert tiff to Gif but it couldn't make the image 2 bit possible for have less size. Notice that bitmap class could create images with this pixel format : 1, 4, 8, 16, 32, 64 (bits) But my need is 2 bit. Unfortunately Gdi+ do not support 2bpp. Is there any source or library to do that? ...

NHibernate with or without Repository

There are several similar questions on this matter, by I still haven't found enough reasons to decide which way to go. The real question is, is it reasonable to abstract the NHibernate using a Repository pattern, or not? It seems that the only reason behind abstracting it is to leave yourself an option to replace NHibernate with a diff...

Custom Control Events in C#

I'm trying to create a custom control and need to raise an event from it. The idea is to raise an event at the end of the click event (OnAfterClick). I found one or two tutorials on doing this, but am clearly missing a step somewhere; I have the following. In the control: public class AfterClickEventArgs : EventArgs { ... } public...

Create an object in C# from an F# object with optional arguments

I have a object in F# as follows... type Person(?name : string) = let name = defaultArg name "" member x.Name = name I want to be able to create an instance of this object in a C# project. I have added as a reference the correct libraries to the project and can see the object via intellisense however I am not sure on the corr...

How to declare an instance which its type is user-defined in C#

Hey all, Simply my question is about defining the type of an instance in run time, and this type is user-defined. Something which looks like this: Type instance1; In run time, the user is going to choose for example "int", then there 'll be, int instance1; Any suggestions?? is downCasting efficient here? ...

can i get dicom image from remote machine in ClearCanvas?

can i get dicom image from remote machine via EndpointAddress endpoint = new EndpointAddress("http://127.0.0.1:51124/ClearCanvas/ImageViewer/Automation?wsdl");" ????? for example : EndpointAddress endpoint = new EndpointAddress("http://MYIP:myport/ClearCanvas/ImageViewer/Automation?wsdl"); ...

Using Predicate of a class to Search Generic list - Faster than looping?

Lets say we have a generic list of Class1, typically having ~100 objects for a given session. I would like to see if the list has a particular object. ASP.NET 2.0 allows me to do this: Dim objResult as Class1 = objList.Find(objSearch) How does this approach rate when compared to a traditional For loop, looking at a performance perspe...

Losing scope for DataContex using LINQToSQL intermediately

I am having a weird Situation with my DataConext. All My code is in C# I have a DLL project for my data access layer and business Layer which and Winforms project for my UI layer. My Data access Layer's Namespace is xxx.Data this is where have my xxx.dbml I also have xxx.Data.BusinessObjects name space of course for my business object i...

.NET version with 64-bit versus 32-bit assemblies

What version of .NET (64-bit vs. 32-bit) will be loaded if some of the assemblies referenced in an app are compiled with 32-bit only (instead of AnyMachine) setting? Will the app still run as 64-bit or will it be forced to run as 32-bit if at least one of the referenced assemblies is compiled as 32-bit only? The app is running .NET 3.5...

Setup requires .NET 4.0 - System already has .net 4.0

I created a service which I now want to install to test, I created a setup program from the templates in Visual Studio 2010. When running the setup program it prompts me to download and install .NET 4.0, but I already have it installed. I did try to just install the file that I get pointed to (4.0 client), but not only does it still not ...

Whats the use of semi-colon (;) in OleDbCommand when it doesn't supports multiple Queries

Hello, I've been wondering if OleDBCommand doesn't supports multiple queries execution then why ";" is used in it ? ...

ASP.NET 32-bit machine compiled now trying to run on 64-bit machine

I have an ASP.NET app that was compiled on a 32-bit machine. There are many different assemblies that are referenced. I opened the web site's main dll with ILDASM and looked at the .corflags. It stated it was ILONLY. However, when I run the web site locally on the 64-bit machine (Windows XP Pro 64-bit), I get "is not a valid Win32 ap...

Applying for .net jobs as a "self learner"

Hi All, I have recently started applying for .Net jobs. I currently work in a sales role with a large telco. I found out quite late that I like programming and as such bought my house and made commitments that mean college is not an option. What I would like to know is, is it harder to get a junior job as a self learner? I have gotten ...

FluentMigrator tutorials

Are there any tutorials for FluentMigrator? Some "Getting Started..." tutorial would be just awesome. All I was able to find was FluentMigrator.Tests (unit tests), inside FluentMigrator source, which are not as helpful as "Getting Started..." would be. ...

In Castle Windsor, can I register a Interface component and get a proxy of the implementation?

Lets consider some cases: _windsor.Register(Component.For<IProductServices>().ImplementedBy<ProductServices>().Interceptors(typeof(SomeInterceptorType)); In this case, when I ask for a IProductServices windsor will proxy the interface to intercept the interface method calls. If instead I do this : _windsor.Register(Component.For<Pr...

Advanced All In One .NET Framework (should i go for a software factory ?)

Hi, i m starting a new project that would basically take input from user and save them to database among about 30 screens, and i would like to find a framework that will allow the maximum number of these features out of the box : .net c#. windows form. unit testing continuous integration logging screens with lists, combo ...